]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/if_not_else.stderr
New upstream version 1.23.0+dfsg1
[rustc.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 9 | / if !bla() {
5 10 | | println!("Bugs");
6 11 | | } else {
7 12 | | println!("Bunny");
8 13 | | }
9 | |_____^
10 |
11 = note: `-D 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 14 | / if 4 != 5 {
18 15 | | println!("Bugs");
19 16 | | } else {
20 17 | | println!("Bunny");
21 18 | | }
22 | |_____^
23 |
24 = help: change to `==` and swap the blocks of the if/else
25