rust/src/test/run-pass/issue-3211.rs

9 lines
138 B
Rust

pub fn main() {
let mut x = 0;
for 4096.times {
x += 1;
}
assert x == 4096;
io::println(fmt!("x = %u", x));
}