4 #![warn(unused_braces, unused_parens)]
5 #![allow(unreachable_code, unused_unsafe)] // for rustfix
11 //~^WARN unnecessary parentheses
13 // Do not emit a lint in these cases,
14 // as we have to be careful with
27 //~^ WARN unnecessary braces
31 //~^ WARN unnecessary braces
35 //~^ WARN unnecessary braces
38 //~^ WARN unnecessary braces
40 // Do not emit lint for multiline blocks.
45 // Do not emit lint for unsafe blocks.
48 // Do not emit lint, as the `{` would then
49 // be parsed as part of the `return`.