1 #![feature(tool_lints)]
5 #![allow(unused_variables)]
6 #![allow(unused_assignments)]
7 #![allow(clippy::if_same_then_else)]
8 #![allow(clippy::deref_addrof)]
10 fn foo() -> bool { true }
13 // weird `else if` formatting:
18 let _ = { // if as the last expression
28 let _ = { // if in the middle of a block
40 if foo() { // the span of the above error should continue here
46 if foo() { // the span of the above error should continue here
69 // weird op_eq formatting:
82 // possible missing comma in an array
84 -1, -2, -3 // <= no comma here
88 -1, -2, -3 // <= no comma here