1 error: this if statement can be collapsed
2 --> $DIR/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`
14 8 | if x == "hello" && y == "world" {
15 9 | println!("Hello world!");
19 error: this if statement can be collapsed
20 --> $DIR/collapsible_if.rs:14:5
22 14 | / if x == "hello" || x == "world" {
23 15 | | if y == "world" || y == "hello" {
24 16 | | println!("Hello world!");
31 14 | if (x == "hello" || x == "world") && (y == "world" || y == "hello") {
32 15 | println!("Hello world!");
36 error: this if statement can be collapsed
37 --> $DIR/collapsible_if.rs:20:5
39 20 | / if x == "hello" && x == "world" {
40 21 | | if y == "world" || y == "hello" {
41 22 | | println!("Hello world!");
48 20 | if x == "hello" && x == "world" && (y == "world" || y == "hello") {
49 21 | println!("Hello world!");
53 error: this if statement can be collapsed
54 --> $DIR/collapsible_if.rs:26:5
56 26 | / if x == "hello" || x == "world" {
57 27 | | if y == "world" && y == "hello" {
58 28 | | println!("Hello world!");
65 26 | if (x == "hello" || x == "world") && y == "world" && y == "hello" {
66 27 | println!("Hello world!");
70 error: this if statement can be collapsed
71 --> $DIR/collapsible_if.rs:32:5
73 32 | / if x == "hello" && x == "world" {
74 33 | | if y == "world" && y == "hello" {
75 34 | | println!("Hello world!");
82 32 | if x == "hello" && x == "world" && y == "world" && y == "hello" {
83 33 | println!("Hello world!");
87 error: this if statement can be collapsed
88 --> $DIR/collapsible_if.rs:38:5
90 38 | / if 42 == 1337 {
91 39 | | if 'a' != 'A' {
92 40 | | println!("world!")
99 38 | if 42 == 1337 && 'a' != 'A' {
100 39 | println!("world!")
104 error: this `else { if .. }` block can be collapsed
105 --> $DIR/collapsible_if.rs:47:12
109 48 | | if y == "world" {
110 49 | | println!("world!")
117 47 | } else if y == "world" {
118 48 | println!("world!")
122 error: this `else { if .. }` block can be collapsed
123 --> $DIR/collapsible_if.rs:55:12
127 56 | | if let Some(42) = Some(42) {
128 57 | | println!("world!")
135 55 | } else if let Some(42) = Some(42) {
136 56 | println!("world!")
140 error: this `else { if .. }` block can be collapsed
141 --> $DIR/collapsible_if.rs:63:12
145 64 | | if y == "world" {
146 65 | | println!("world")
155 63 | } else if y == "world" {
156 64 | println!("world")
163 error: this `else { if .. }` block can be collapsed
164 --> $DIR/collapsible_if.rs:74:12
168 75 | | if let Some(42) = Some(42) {
169 76 | | println!("world")
178 74 | } else if let Some(42) = Some(42) {
179 75 | println!("world")
186 error: this `else { if .. }` block can be collapsed
187 --> $DIR/collapsible_if.rs:85:12
191 86 | | if let Some(42) = Some(42) {
192 87 | | println!("world")
201 85 | } else if let Some(42) = Some(42) {
202 86 | println!("world")
209 error: this `else { if .. }` block can be collapsed
210 --> $DIR/collapsible_if.rs:96:12
214 97 | | if x == "hello" {
215 98 | | println!("world")
224 96 | } else if x == "hello" {
225 97 | println!("world")
232 error: this `else { if .. }` block can be collapsed
233 --> $DIR/collapsible_if.rs:107:12
237 108 | | if let Some(42) = Some(42) {
238 109 | | println!("world")
247 107 | } else if let Some(42) = Some(42) {
248 108 | println!("world")