]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/if_not_else.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / if_not_else.stderr
CommitLineData
f20569fa 1error: unnecessary boolean `not` operation
3c0e092e 2 --> $DIR/if_not_else.rs:12:5
f20569fa
XL
3 |
4LL | / if !bla() {
5LL | | println!("Bugs");
6LL | | } else {
7LL | | println!("Bunny");
8LL | | }
9 | |_____^
10 |
f20569fa 11 = help: remove the `!` and swap the blocks of the `if`/`else`
2b03887a 12 = note: `-D clippy::if-not-else` implied by `-D warnings`
f20569fa
XL
13
14error: unnecessary `!=` operation
3c0e092e 15 --> $DIR/if_not_else.rs:17:5
f20569fa
XL
16 |
17LL | / if 4 != 5 {
18LL | | println!("Bugs");
19LL | | } else {
20LL | | println!("Bunny");
21LL | | }
22 | |_____^
23 |
24 = help: change to `==` and swap the blocks of the `if`/`else`
25
26error: aborting due to 2 previous errors
27