2 // rustfix-only-machine-applicable
3 #![allow(unused_variables)]
5 #![allow(unused_must_use)]
8 ({2}) + {2} //~ ERROR expected expression, found `+`
9 //~^ ERROR mismatched types
13 ({2}) + 2 //~ ERROR leading `+` is not supported
14 //~^ ERROR mismatched types
19 ({ 42 }) + foo; //~ ERROR expected expression, found `+`
20 //~^ ERROR mismatched types
25 ({ 3 }) * 3 //~ ERROR type `{integer}` cannot be dereferenced
26 //~^ ERROR mismatched types
29 fn moo(x: u32) -> bool {
32 }) > 0 //~ ERROR expected expression
36 ({2}) - 2 //~ ERROR cannot apply unary operator `-` to type `u32`
37 //~^ ERROR mismatched types