729060dbb9
`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.
7 lines
129 B
Rust
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);
|
|
}
|