1 // Copyright 2014-2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
11 #![allow(unused_variables)]
12 #![allow(unused_assignments)]
13 #![allow(clippy::if_same_then_else)]
14 #![allow(clippy::deref_addrof)]
21 // weird `else if` formatting:
26 // if as the last expression
36 // if in the middle of a block
47 // the span of the above error should continue here
52 // the span of the above error should continue here
71 // weird op_eq formatting:
84 // possible missing comma in an array
88 -3 // <= no comma here
96 -3 // <= no comma here
103 let _ = &[-1, -2, -3, -4, -5, -6];
104 let _ = &[-1, -2, -3, -4, -5, -6];
105 let _ = &[1 + 2, 3 + 4, 5 + 6];
107 // don't lint for bin op without unary equiv