1 error: this `if` has identical blocks
2 --> $DIR/valid_if_blocks.rs:104:14
9 note: the lint level is defined here
10 --> $DIR/valid_if_blocks.rs:2:9
12 LL | #![deny(clippy::if_same_then_else, clippy::branches_sharing_code)]
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^
15 --> $DIR/valid_if_blocks.rs:105:12
22 error: this `if` has identical blocks
23 --> $DIR/valid_if_blocks.rs:115:15
28 LL | | println!("How are u today?");
29 LL | | let _ = "This is a string";
34 --> $DIR/valid_if_blocks.rs:119:12
39 LL | | println!("How are u today?");
40 LL | | let _ = "This is a string";
44 error: this `if` has identical blocks
45 --> $DIR/valid_if_blocks.rs:126:23
47 LL | let _ = if x == 6 { 7 } else { 7 };
51 --> $DIR/valid_if_blocks.rs:126:34
53 LL | let _ = if x == 6 { 7 } else { 7 };
56 error: this `if` has identical blocks
57 --> $DIR/valid_if_blocks.rs:132:23
59 LL | } else if x == 68 {
60 | _______________________^
61 LL | | println!("I'm a doppelgänger");
62 LL | | // Don't listen to my clone below
64 LL | | if y == 90 { "=^.^=" } else { ":D" }
69 --> $DIR/valid_if_blocks.rs:137:12
73 LL | | // Don't listen to my clone above
74 LL | | println!("I'm a doppelgänger");
76 LL | | if y == 90 { "=^.^=" } else { ":D" }
80 error: this `if` has identical blocks
81 --> $DIR/valid_if_blocks.rs:146:23
83 LL | } else if x == 68 {
84 | _______________________^
85 LL | | println!("I'm a doppelgänger");
86 LL | | // Don't listen to my clone below
91 --> $DIR/valid_if_blocks.rs:149:12
95 LL | | // Don't listen to my clone above
96 LL | | println!("I'm a doppelgänger");
100 error: aborting due to 5 previous errors