1 error: this `if` has identical blocks
2 --> $DIR/if_same_then_else.rs:28:12
6 LL | | //~ ERROR same body as `if` block
7 LL | | Foo { bar: 42 };
14 = note: `-D clippy::if-same-then-else` implied by `-D warnings`
16 --> $DIR/if_same_then_else.rs:20:13
20 LL | | Foo { bar: 42 };
28 error: this `if` has identical blocks
29 --> $DIR/if_same_then_else.rs:66:12
33 LL | | //~ ERROR same body as `if` block
39 --> $DIR/if_same_then_else.rs:64:21
41 LL | let _ = if true {
42 | _____________________^
47 error: this `if` has identical blocks
48 --> $DIR/if_same_then_else.rs:73:12
52 LL | | //~ ERROR same body as `if` block
58 --> $DIR/if_same_then_else.rs:71:21
60 LL | let _ = if true {
61 | _____________________^
66 error: this `if` has identical blocks
67 --> $DIR/if_same_then_else.rs:89:12
71 LL | | //~ ERROR same body as `if` block
77 --> $DIR/if_same_then_else.rs:87:21
79 LL | let _ = if true {
80 | _____________________^
85 error: this `if` has identical blocks
86 --> $DIR/if_same_then_else.rs:101:12
90 LL | | //~ ERROR same body as `if` block
91 LL | | let bar = if true { 42 } else { 43 };
99 --> $DIR/if_same_then_else.rs:94:13
103 LL | | let bar = if true { 42 } else { 43 };
111 error: aborting due to 5 previous errors