rust-clippy/tests/ui/needless_bitwise_bool.stderr

11 lines
296 B
Text
Raw Normal View History

2021-05-11 19:34:14 +00:00
error: use of bitwise operator instead of lazy operator between booleans
2023-07-27 11:40:22 +00:00
--> $DIR/needless_bitwise_bool.rs:22:8
2021-05-11 19:34:14 +00:00
|
LL | if y & !x {
| ^^^^^^ help: try: `y && !x`
|
= note: `-D clippy::needless-bitwise-bool` implied by `-D warnings`
error: aborting due to previous error