fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this `if` has the same condition as a previous `if` 2 --> $DIR/ifs_same_cond.rs:14:15 3 | 4LL | } else if b { 5 | ^ 6 | 7note: same as this 8 --> $DIR/ifs_same_cond.rs:13:8 9 | 10LL | if b { 11 | ^ 12 = note: `-D clippy::ifs-same-cond` implied by `-D warnings` 13 = help: to override `-D warnings` add `#[allow(clippy::ifs_same_cond)]` 14 15error: this `if` has the same condition as a previous `if` 16 --> $DIR/ifs_same_cond.rs:19:15 17 | 18LL | } else if a == 1 { 19 | ^^^^^^ 20 | 21note: same as this 22 --> $DIR/ifs_same_cond.rs:18:8 23 | 24LL | if a == 1 { 25 | ^^^^^^ 26 27error: this `if` has the same condition as a previous `if` 28 --> $DIR/ifs_same_cond.rs:25:15 29 | 30LL | } else if 2 * a == 1 { 31 | ^^^^^^^^^^ 32 | 33note: same as this 34 --> $DIR/ifs_same_cond.rs:23:8 35 | 36LL | if 2 * a == 1 { 37 | ^^^^^^^^^^ 38 39error: this `if` has the same condition as a previous `if` 40 --> $DIR/ifs_same_cond.rs:58:15 41 | 42LL | } else if a.contains("ah") { 43 | ^^^^^^^^^^^^^^^^ 44 | 45note: same as this 46 --> $DIR/ifs_same_cond.rs:57:8 47 | 48LL | if a.contains("ah") { 49 | ^^^^^^^^^^^^^^^^ 50 51error: aborting due to 4 previous errors 52