rust/src/test/run-pass/issue-3211.rs
Brendan Zabarauskas 729060dbb9 Remove Times trait
`Times::times` was always a second-class loop because it did not support the `break` and `continue` operations. Its playful appeal was then lost after `do` was disabled for closures. It's time to let this one go.
2014-01-30 14:52:25 +11:00

7 lines
129 B
Rust

pub fn main() {
let mut x = 0;
for _ in range(0, 4096) { x += 1; }
assert_eq!(x, 4096);
println!("x = {}", x);
}