rust/src/test/run-pass/issue-3211.rs
2013-05-19 08:16:02 -04:00

9 lines
141 B
Rust

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