1 error: this if statement can be collapsed
2 --> collapsible_if.rs:8:5
4 8 | / if x == "hello" {
5 9 | | if y == "world" {
6 10 | | println!("Hello world!");
11 = note: `-D collapsible-if` implied by `-D warnings`
13 | if x == "hello" && y == "world" {
14 | println!("Hello world!");
17 error: this if statement can be collapsed
18 --> collapsible_if.rs:14:5
20 14 | / if x == "hello" || x == "world" {
21 15 | | if y == "world" || y == "hello" {
22 16 | | println!("Hello world!");
27 = note: `-D collapsible-if` implied by `-D warnings`
29 | if (x == "hello" || x == "world") && (y == "world" || y == "hello") {
30 | println!("Hello world!");
33 error: this if statement can be collapsed
34 --> collapsible_if.rs:20:5
36 20 | / if x == "hello" && x == "world" {
37 21 | | if y == "world" || y == "hello" {
38 22 | | println!("Hello world!");
43 = note: `-D collapsible-if` implied by `-D warnings`
45 | if x == "hello" && x == "world" && (y == "world" || y == "hello") {
46 | println!("Hello world!");
49 error: this if statement can be collapsed
50 --> collapsible_if.rs:26:5
52 26 | / if x == "hello" || x == "world" {
53 27 | | if y == "world" && y == "hello" {
54 28 | | println!("Hello world!");
59 = note: `-D collapsible-if` implied by `-D warnings`
61 | if (x == "hello" || x == "world") && y == "world" && y == "hello" {
62 | println!("Hello world!");
65 error: this if statement can be collapsed
66 --> collapsible_if.rs:32:5
68 32 | / if x == "hello" && x == "world" {
69 33 | | if y == "world" && y == "hello" {
70 34 | | println!("Hello world!");
75 = note: `-D collapsible-if` implied by `-D warnings`
77 | if x == "hello" && x == "world" && y == "world" && y == "hello" {
78 | println!("Hello world!");
81 error: this if statement can be collapsed
82 --> collapsible_if.rs:38:5
84 38 | / if 42 == 1337 {
85 39 | | if 'a' != 'A' {
86 40 | | println!("world!")
91 = note: `-D collapsible-if` implied by `-D warnings`
93 | if 42 == 1337 && 'a' != 'A' {
97 error: this `else { if .. }` block can be collapsed
98 --> collapsible_if.rs:47:12
102 48 | | if y == "world" {
103 49 | | println!("world!")
108 = note: `-D collapsible-if` implied by `-D warnings`
110 | } else if y == "world" {
114 error: this `else { if .. }` block can be collapsed
115 --> collapsible_if.rs:55:12
119 56 | | if let Some(42) = Some(42) {
120 57 | | println!("world!")
125 = note: `-D collapsible-if` implied by `-D warnings`
127 | } else if let Some(42) = Some(42) {
131 error: this `else { if .. }` block can be collapsed
132 --> collapsible_if.rs:63:12
136 64 | | if y == "world" {
137 65 | | println!("world")
144 = note: `-D collapsible-if` implied by `-D warnings`
146 | } else if y == "world" {
153 error: this `else { if .. }` block can be collapsed
154 --> collapsible_if.rs:74:12
158 75 | | if let Some(42) = Some(42) {
159 76 | | println!("world")
166 = note: `-D collapsible-if` implied by `-D warnings`
168 | } else if let Some(42) = Some(42) {
175 error: this `else { if .. }` block can be collapsed
176 --> collapsible_if.rs:85:12
180 86 | | if let Some(42) = Some(42) {
181 87 | | println!("world")
188 = note: `-D collapsible-if` implied by `-D warnings`
190 | } else if let Some(42) = Some(42) {
197 error: this `else { if .. }` block can be collapsed
198 --> collapsible_if.rs:96:12
202 97 | | if x == "hello" {
203 98 | | println!("world")
210 = note: `-D collapsible-if` implied by `-D warnings`
212 | } else if x == "hello" {
219 error: this `else { if .. }` block can be collapsed
220 --> collapsible_if.rs:107:12
224 108 | | if let Some(42) = Some(42) {
225 109 | | println!("world")
232 = note: `-D collapsible-if` implied by `-D warnings`
234 | } else if let Some(42) = Some(42) {
241 error: aborting due to 13 previous errors
243 error: Could not compile `clippy_tests`.
245 To learn more, run the command again with --verbose.