rust/src/test/ui/paren-free.rs
2019-07-27 18:56:16 +03:00

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"); } }
}