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

9 lines
137 B
Rust

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