1 error: this `if` has identical blocks
2 --> $DIR/if_same_then_else.rs:21:13
6 LL | | Foo { bar: 42 };
14 = note: `-D clippy::if-same-then-else` implied by `-D warnings`
16 --> $DIR/if_same_then_else.rs:29:12
20 LL | | //~ ERROR same body as `if` block
21 LL | | Foo { bar: 42 };
28 error: this `if` has identical blocks
29 --> $DIR/if_same_then_else.rs:65:21
31 LL | let _ = if true {
32 | _____________________^
38 --> $DIR/if_same_then_else.rs:67:12
42 LL | | //~ ERROR same body as `if` block
47 error: this `if` has identical blocks
48 --> $DIR/if_same_then_else.rs:72:21
50 LL | let _ = if true {
51 | _____________________^
57 --> $DIR/if_same_then_else.rs:74:12
61 LL | | //~ ERROR same body as `if` block
66 error: this `if` has identical blocks
67 --> $DIR/if_same_then_else.rs:88:21
69 LL | let _ = if true {
70 | _____________________^
76 --> $DIR/if_same_then_else.rs:90:12
80 LL | | //~ ERROR same body as `if` block
85 error: this `if` has identical blocks
86 --> $DIR/if_same_then_else.rs:95:13
90 LL | | let bar = if true { 42 } else { 43 };
99 --> $DIR/if_same_then_else.rs:102: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