summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/needless_bitwise_bool.stderr
blob: b1fc1a7a9585162b1822edc63cae4a4aab23dbed (plain)
1
2
3
4
5
6
7
8
9
10
11
error: use of bitwise operator instead of lazy operator between booleans
  --> $DIR/needless_bitwise_bool.rs:22:8
   |
LL |     if y & !x {
   |        ^^^^^^ help: try: `y && !x`
   |
   = note: `-D clippy::needless-bitwise-bool` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::needless_bitwise_bool)]`

error: aborting due to 1 previous error