2 #![allow(unused_variables)]
3 #![allow(unused_assignments)]
4 #![allow(clippy::if_same_then_else)]
5 #![allow(clippy::deref_addrof)]
7 fn foo() -> bool { true }
10 // weird `else` formatting:
19 let _ = { // if as the last expression
29 let _ = { // if in the middle of a block
52 if foo() { // the span of the above error should continue here
58 if foo() { // the span of the above error should continue here
95 // weird op_eq formatting:
108 // possible missing comma in an array
110 -1, -2, -3 // <= no comma here
114 -1, -2, -3 // <= no comma here
132 // don't lint for bin op without unary equiv