11error: these `if` branches have the same condition
2- --> tests/ui/ifs_same_cond.rs:8 :8
2+ --> tests/ui/ifs_same_cond.rs:10 :8
33 |
44LL | if b {
55 | ^
@@ -11,7 +11,7 @@ LL | } else if b {
1111 = help: to override `-D warnings` add `#[allow(clippy::ifs_same_cond)]`
1212
1313error: these `if` branches have the same condition
14- --> tests/ui/ifs_same_cond.rs:13 :8
14+ --> tests/ui/ifs_same_cond.rs:15 :8
1515 |
1616LL | if b {
1717 | ^
@@ -22,7 +22,7 @@ LL | } else if b {
2222 | ^
2323
2424error: these `if` branches have the same condition
25- --> tests/ui/ifs_same_cond.rs:19 :8
25+ --> tests/ui/ifs_same_cond.rs:21 :8
2626 |
2727LL | if a == 1 {
2828 | ^^^^^^
@@ -31,7 +31,7 @@ LL | } else if a == 1 {
3131 | ^^^^^^
3232
3333error: these `if` branches have the same condition
34- --> tests/ui/ifs_same_cond.rs:24 :8
34+ --> tests/ui/ifs_same_cond.rs:26 :8
3535 |
3636LL | if 2 * a == 1 {
3737 | ^^^^^^^^^^
@@ -40,13 +40,22 @@ LL | } else if 2 * a == 1 {
4040 | ^^^^^^^^^^
4141
4242error: these `if` branches have the same condition
43- --> tests/ui/ifs_same_cond.rs:58 :8
43+ --> tests/ui/ifs_same_cond.rs:60 :8
4444 |
4545LL | if a.contains("ah") {
4646 | ^^^^^^^^^^^^^^^^
4747LL |
4848LL | } else if a.contains("ah") {
4949 | ^^^^^^^^^^^^^^^^
5050
51- error: aborting due to 5 previous errors
51+ error: these `if` branches have the same condition
52+ --> tests/ui/ifs_same_cond.rs:107:8
53+ |
54+ LL | if x.get() {
55+ | ^^^^^^^
56+ ...
57+ LL | } else if x.get() {
58+ | ^^^^^^^
59+
60+ error: aborting due to 6 previous errors
5261
0 commit comments