rust/src/test/run-pass/issue-3211.rs
2013-07-24 09:45:20 -04:00

9 lines
133 B
Rust

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