]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/if_not_else.stderr
Merge commit '3d0b0e66afdfaa519d8855b338b35b4605775945' into clippyup
[rust.git] / src / tools / clippy / tests / ui / if_not_else.stderr
1 error: unnecessary boolean `not` operation
2   --> $DIR/if_not_else.rs:9:5
3    |
4 LL | /     if !bla() {
5 LL | |         println!("Bugs");
6 LL | |     } else {
7 LL | |         println!("Bunny");
8 LL | |     }
9    | |_____^
10    |
11    = note: `-D clippy::if-not-else` implied by `-D warnings`
12    = help: remove the `!` and swap the blocks of the `if`/`else`
13
14 error: unnecessary `!=` operation
15   --> $DIR/if_not_else.rs:14:5
16    |
17 LL | /     if 4 != 5 {
18 LL | |         println!("Bugs");
19 LL | |     } else {
20 LL | |         println!("Bunny");
21 LL | |     }
22    | |_____^
23    |
24    = help: change to `==` and swap the blocks of the `if`/`else`
25
26 error: aborting due to 2 previous errors
27