2 #![allow(unused_variables)]
4 #![allow(unused_must_use)]
7 {2} + {2} //~ ERROR expected expression, found `+`
8 //~^ ERROR mismatched types
12 {2} + 2 //~ ERROR expected expression, found `+`
13 //~^ ERROR mismatched types
18 { 42 } + foo; //~ ERROR expected expression, found `+`
19 //~^ ERROR mismatched types
24 { 3 } * 3 //~ ERROR type `{integer}` cannot be dereferenced
25 //~^ ERROR mismatched types
28 fn qux(a: Option<u32>, b: Option<u32>) -> bool {
29 if let Some(x) = a { true } else { false }
30 && //~ ERROR expected expression
31 if let Some(y) = a { true } else { false }
34 fn moo(x: u32) -> bool {
37 } > 0 //~ ERROR expected expression