rust/src/test/run-pass/issue-4401.rs
Patrick Walton f571e46ddb test: Remove non-procedure uses of do from compiletest, libstd tests,
compile-fail tests, run-fail tests, and run-pass tests.
2013-11-26 08:25:27 -08:00

7 lines
134 B
Rust

pub fn main() {
let mut count = 0;
999_999.times(|| count += 1);
assert_eq!(count, 999_999);
println!("{}", count);
}