mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
381 B
Text
11 lines
381 B
Text
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
|
|
|