summary refs log tree commit diff
path: root/src/test/ui/paren-free.rs
blob: 8e8bb8800ec0d7524e8f68aed2dca9ceadaae557 (plain)
1
2
3
4
5
6
7
// 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"); } }
}