rust/src/test/run-pass/paren-free.rs
2012-08-23 11:14:14 -07:00

6 lines
160 B
Rust

fn main() {
let x = true;
if x { let mut i = 10; while i > 0 { i -= 1; } }
match x { true => { debug!("right"); } false => { debug!("wrong"); } }
}