1 error: this `if` has identical blocks
2 --> $DIR/if_same_then_else.rs:23:13
6 LL | | Foo { bar: 42 };
15 --> $DIR/if_same_then_else.rs:31:12
19 LL | | //~ ERROR same body as `if` block
20 LL | | Foo { bar: 42 };
26 = note: `-D clippy::if-same-then-else` implied by `-D warnings`
28 error: this `if` has identical blocks
29 --> $DIR/if_same_then_else.rs:67:21
31 LL | let _ = if true {
32 | _____________________^
38 --> $DIR/if_same_then_else.rs:69:12
42 LL | | //~ ERROR same body as `if` block
47 error: this `if` has identical blocks
48 --> $DIR/if_same_then_else.rs:74:21
50 LL | let _ = if true {
51 | _____________________^
57 --> $DIR/if_same_then_else.rs:76:12
61 LL | | //~ ERROR same body as `if` block
66 error: this `if` has identical blocks
67 --> $DIR/if_same_then_else.rs:90:21
69 LL | let _ = if true {
70 | _____________________^
76 --> $DIR/if_same_then_else.rs:92:12
80 LL | | //~ ERROR same body as `if` block
85 error: this `if` has identical blocks
86 --> $DIR/if_same_then_else.rs:97:13
90 LL | | let bar = if true { 42 } else { 43 };
99 --> $DIR/if_same_then_else.rs:104:12
103 LL | | //~ ERROR same body as `if` block
104 LL | | let bar = if true { 42 } else { 43 };
111 error: aborting due to 5 previous errors