1 error: &-masking with zero
2 --> $DIR/bit_masks.rs:12:5
7 note: lint level defined here
8 --> $DIR/bit_masks.rs:7:8
10 7 | #[deny(bad_bit_mask)]
13 error: incompatible bit mask: `_ & 2` can never be equal to `1`
14 --> $DIR/bit_masks.rs:15:5
19 error: incompatible bit mask: `_ | 3` can never be equal to `2`
20 --> $DIR/bit_masks.rs:19:5
25 error: incompatible bit mask: `_ & 1` will never be higher than `1`
26 --> $DIR/bit_masks.rs:21:5
31 error: incompatible bit mask: `_ | 2` will always be higher than `1`
32 --> $DIR/bit_masks.rs:25:5
37 error: incompatible bit mask: `_ & 7` can never be equal to `8`
38 --> $DIR/bit_masks.rs:32:5
40 32 | x & THREE_BITS == 8;
43 error: incompatible bit mask: `_ | 7` will never be lower than `7`
44 --> $DIR/bit_masks.rs:33:5
46 33 | x | EVEN_MORE_REDIRECTION < 7;
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 error: &-masking with zero
50 --> $DIR/bit_masks.rs:35:5
55 error: incompatible bit mask: `_ | 2` will always be higher than `1`
56 --> $DIR/bit_masks.rs:39:5
61 error: incompatible bit mask: `_ | 3` can never be equal to `2`
62 --> $DIR/bit_masks.rs:40:5
67 error: incompatible bit mask: `_ & 2` can never be equal to `1`
68 --> $DIR/bit_masks.rs:41:5
73 error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly
74 --> $DIR/bit_masks.rs:52:5
79 note: lint level defined here
80 --> $DIR/bit_masks.rs:47:8
82 47 | #[deny(ineffective_bit_mask)]
83 | ^^^^^^^^^^^^^^^^^^^^
85 error: ineffective bit mask: `x | 1` compared to `4`, is the same as x compared directly
86 --> $DIR/bit_masks.rs:53:5
91 error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly
92 --> $DIR/bit_masks.rs:54:5
97 error: ineffective bit mask: `x | 1` compared to `8`, is the same as x compared directly
98 --> $DIR/bit_masks.rs:55:5
103 error: aborting due to 15 previous errors