Closed
Description
The following code using 'times' only prints 44 lines, whereas I'd expect it to print 300 lines.
use std;
fn main() {
for 300.times {
io::println("Here's some Rust!");
}
}
Replacing '300' with 300u prints 300 lines:
use std;
fn main() {
for 300u.times {
io::println("Here's some Rust!");
}
}
Tested with rust incoming branch:
$ rustc test.rs
$ ./test |wc -l
44
Metadata
Metadata
Assignees
Labels
No labels