1error: this `if` has identical blocks
2  --> $DIR/valid_if_blocks.rs:104:14
3   |
4LL |       if false {
5   |  ______________^
6LL | |     } else {
7   | |_____^
8   |
9note: the lint level is defined here
10  --> $DIR/valid_if_blocks.rs:2:9
11   |
12LL | #![deny(clippy::if_same_then_else, clippy::branches_sharing_code)]
13   |         ^^^^^^^^^^^^^^^^^^^^^^^^^
14note: same as this
15  --> $DIR/valid_if_blocks.rs:105:12
16   |
17LL |       } else {
18   |  ____________^
19LL | |     }
20   | |_____^
21
22error: this `if` has identical blocks
23  --> $DIR/valid_if_blocks.rs:115:15
24   |
25LL |       if x == 0 {
26   |  _______________^
27LL | |         let u = 19;
28LL | |         println!("How are u today?");
29LL | |         let _ = "This is a string";
30LL | |     } else {
31   | |_____^
32   |
33note: same as this
34  --> $DIR/valid_if_blocks.rs:119:12
35   |
36LL |       } else {
37   |  ____________^
38LL | |         let u = 19;
39LL | |         println!("How are u today?");
40LL | |         let _ = "This is a string";
41LL | |     }
42   | |_____^
43
44error: this `if` has identical blocks
45  --> $DIR/valid_if_blocks.rs:126:23
46   |
47LL |     let _ = if x == 6 { 7 } else { 7 };
48   |                       ^^^^^
49   |
50note: same as this
51  --> $DIR/valid_if_blocks.rs:126:34
52   |
53LL |     let _ = if x == 6 { 7 } else { 7 };
54   |                                  ^^^^^
55
56error: this `if` has identical blocks
57  --> $DIR/valid_if_blocks.rs:132:23
58   |
59LL |       } else if x == 68 {
60   |  _______________________^
61LL | |         println!("I'm a doppelgänger");
62LL | |         // Don't listen to my clone below
63LL | |
64LL | |         if y == 90 { "=^.^=" } else { ":D" }
65LL | |     } else {
66   | |_____^
67   |
68note: same as this
69  --> $DIR/valid_if_blocks.rs:137:12
70   |
71LL |       } else {
72   |  ____________^
73LL | |         // Don't listen to my clone above
74LL | |         println!("I'm a doppelgänger");
75LL | |
76LL | |         if y == 90 { "=^.^=" } else { ":D" }
77LL | |     };
78   | |_____^
79
80error: this `if` has identical blocks
81  --> $DIR/valid_if_blocks.rs:146:23
82   |
83LL |       } else if x == 68 {
84   |  _______________________^
85LL | |         println!("I'm a doppelgänger");
86LL | |         // Don't listen to my clone below
87LL | |     } else {
88   | |_____^
89   |
90note: same as this
91  --> $DIR/valid_if_blocks.rs:149:12
92   |
93LL |       } else {
94   |  ____________^
95LL | |         // Don't listen to my clone above
96LL | |         println!("I'm a doppelgänger");
97LL | |     }
98   | |_____^
99
100error: aborting due to 5 previous errors
101
102