1 error: &-masking with zero
2 --> $DIR/bit_masks.rs:14:5
7 = note: `-D clippy::bad-bit-mask` implied by `-D warnings`
9 error: this operation will always return zero. This is likely not the intended outcome
10 --> $DIR/bit_masks.rs:14:5
15 = note: `#[deny(clippy::erasing_op)]` on by default
17 error: incompatible bit mask: `_ & 2` can never be equal to `1`
18 --> $DIR/bit_masks.rs:17:5
23 error: incompatible bit mask: `_ | 3` can never be equal to `2`
24 --> $DIR/bit_masks.rs:21:5
29 error: incompatible bit mask: `_ & 1` will never be higher than `1`
30 --> $DIR/bit_masks.rs:23:5
35 error: incompatible bit mask: `_ | 2` will always be higher than `1`
36 --> $DIR/bit_masks.rs:27:5
41 error: incompatible bit mask: `_ & 7` can never be equal to `8`
42 --> $DIR/bit_masks.rs:34:5
44 LL | x & THREE_BITS == 8;
47 error: incompatible bit mask: `_ | 7` will never be lower than `7`
48 --> $DIR/bit_masks.rs:35:5
50 LL | x | EVEN_MORE_REDIRECTION < 7;
51 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
53 error: &-masking with zero
54 --> $DIR/bit_masks.rs:37:5
59 error: this operation will always return zero. This is likely not the intended outcome
60 --> $DIR/bit_masks.rs:37:5
65 error: incompatible bit mask: `_ | 2` will always be higher than `1`
66 --> $DIR/bit_masks.rs:41:5
71 error: incompatible bit mask: `_ | 3` can never be equal to `2`
72 --> $DIR/bit_masks.rs:42:5
77 error: incompatible bit mask: `_ & 2` can never be equal to `1`
78 --> $DIR/bit_masks.rs:43:5
83 error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly
84 --> $DIR/bit_masks.rs:54:5
89 = note: `-D clippy::ineffective-bit-mask` implied by `-D warnings`
91 error: ineffective bit mask: `x | 1` compared to `4`, is the same as x compared directly
92 --> $DIR/bit_masks.rs:55:5
97 error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly
98 --> $DIR/bit_masks.rs:56:5
103 error: ineffective bit mask: `x | 1` compared to `8`, is the same as x compared directly
104 --> $DIR/bit_masks.rs:57:5
109 error: aborting due to 17 previous errors