f571e46ddb
compile-fail tests, run-fail tests, and run-pass tests.
7 lines
116 B
Rust
7 lines
116 B
Rust
pub fn main() {
|
|
let mut x = 0;
|
|
4096.times(|| x += 1);
|
|
assert_eq!(x, 4096);
|
|
println!("x = {}", x);
|
|
}
|