mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 00:56:14 +00:00
12 lines
385 B
Plaintext
12 lines
385 B
Plaintext
error: use of bitwise operator instead of lazy operator between booleans
|
|
--> tests/ui/needless_bitwise_bool.rs:23: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
|
|
|