blob: b7f0e9ae96269fe6fbb6c1466bf45209df450b43 [file]
error: these `if` branches have the same condition
--> tests/ui/ifs_same_cond.rs:12:8
|
LL | if b {
| ^
LL |
LL | } else if b {
| ^
|
= note: `-D clippy::ifs-same-cond` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::ifs_same_cond)]`
error: these `if` branches have the same condition
--> tests/ui/ifs_same_cond.rs:17:8
|
LL | if b {
| ^
LL |
LL | } else if b {
| ^
LL | } else if b {
| ^
error: these `if` branches have the same condition
--> tests/ui/ifs_same_cond.rs:23:8
|
LL | if a == 1 {
| ^^^^^^
LL |
LL | } else if a == 1 {
| ^^^^^^
error: these `if` branches have the same condition
--> tests/ui/ifs_same_cond.rs:28:8
|
LL | if 2 * a == 1 {
| ^^^^^^^^^^
...
LL | } else if 2 * a == 1 {
| ^^^^^^^^^^
error: these `if` branches have the same condition
--> tests/ui/ifs_same_cond.rs:62:8
|
LL | if a.contains("ah") {
| ^^^^^^^^^^^^^^^^
LL |
LL | } else if a.contains("ah") {
| ^^^^^^^^^^^^^^^^
error: aborting due to 5 previous errors