mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-17 19:14:16 +00:00
9 lines
131 B
Rust
9 lines
131 B
Rust
pub fn main() {
|
|
let mut x = 0;
|
|
do 4096.times {
|
|
x += 1;
|
|
}
|
|
assert_eq!(x, 4096);
|
|
println!("x = {}", x);
|
|
}
|