8 lines
181 B
Rust
8 lines
181 B
Rust
// run-pass
|
|
|
|
pub fn main() {
|
|
let x = true;
|
|
if x { let mut i = 10; while i > 0 { i -= 1; } }
|
|
match x { true => { println!("right"); } false => { println!("wrong"); } }
|
|
}
|