rust/tests/ui/needless_bitwise_bool.stderr

12 lines
379 B
Plaintext
Raw Normal View History

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 previous error