5 #![allow(unused_variables)]
6 #![allow(unused_assignments)]
7 #![allow(if_same_then_else)]
8 #![allow(deref_addrof)]
10 fn foo() -> bool { true }
13 // weird `else if` formatting:
20 let _ = { // if as the last expression
32 let _ = { // if in the middle of a block
48 if foo() { // the span of the above error should continue here
56 if foo() { // the span of the above error should continue here
81 // weird op_eq formatting:
100 // possible missing comma in an array
102 -1, -2, -3 // <= no comma here
108 -1, -2, -3 // <= no comma here