]> git.lizzy.rs Git - rust.git/blob - tests/ui/bit_masks.stderr
Configuration option for VERBOSE_BIT_MASK threshold
[rust.git] / tests / ui / bit_masks.stderr
1 error: &-masking with zero
2   --> $DIR/bit_masks.rs:12:5
3    |
4 12 |     x & 0 == 0;
5    |     ^^^^^^^^^^
6    |
7    = note: `-D bad-bit-mask` implied by `-D warnings`
8
9 error: incompatible bit mask: `_ & 2` can never be equal to `1`
10   --> $DIR/bit_masks.rs:15:5
11    |
12 15 |     x & 2 == 1;
13    |     ^^^^^^^^^^
14
15 error: incompatible bit mask: `_ | 3` can never be equal to `2`
16   --> $DIR/bit_masks.rs:19:5
17    |
18 19 |     x | 3 == 2;
19    |     ^^^^^^^^^^
20
21 error: incompatible bit mask: `_ & 1` will never be higher than `1`
22   --> $DIR/bit_masks.rs:21:5
23    |
24 21 |     x & 1 > 1;
25    |     ^^^^^^^^^
26
27 error: incompatible bit mask: `_ | 2` will always be higher than `1`
28   --> $DIR/bit_masks.rs:25:5
29    |
30 25 |     x | 2 > 1;
31    |     ^^^^^^^^^
32
33 error: incompatible bit mask: `_ & 7` can never be equal to `8`
34   --> $DIR/bit_masks.rs:32:5
35    |
36 32 |     x & THREE_BITS == 8;
37    |     ^^^^^^^^^^^^^^^^^^^
38
39 error: incompatible bit mask: `_ | 7` will never be lower than `7`
40   --> $DIR/bit_masks.rs:33:5
41    |
42 33 |     x | EVEN_MORE_REDIRECTION < 7;
43    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44
45 error: &-masking with zero
46   --> $DIR/bit_masks.rs:35:5
47    |
48 35 |     0 & x == 0;
49    |     ^^^^^^^^^^
50
51 error: incompatible bit mask: `_ | 2` will always be higher than `1`
52   --> $DIR/bit_masks.rs:39:5
53    |
54 39 |     1 < 2 | x;
55    |     ^^^^^^^^^
56
57 error: incompatible bit mask: `_ | 3` can never be equal to `2`
58   --> $DIR/bit_masks.rs:40:5
59    |
60 40 |     2 == 3 | x;
61    |     ^^^^^^^^^^
62
63 error: incompatible bit mask: `_ & 2` can never be equal to `1`
64   --> $DIR/bit_masks.rs:41:5
65    |
66 41 |     1 == x & 2;
67    |     ^^^^^^^^^^
68
69 error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly
70   --> $DIR/bit_masks.rs:52:5
71    |
72 52 |     x | 1 > 3;
73    |     ^^^^^^^^^
74    |
75    = note: `-D ineffective-bit-mask` implied by `-D warnings`
76
77 error: ineffective bit mask: `x | 1` compared to `4`, is the same as x compared directly
78   --> $DIR/bit_masks.rs:53:5
79    |
80 53 |     x | 1 < 4;
81    |     ^^^^^^^^^
82
83 error: ineffective bit mask: `x | 1` compared to `3`, is the same as x compared directly
84   --> $DIR/bit_masks.rs:54:5
85    |
86 54 |     x | 1 <= 3;
87    |     ^^^^^^^^^^
88
89 error: ineffective bit mask: `x | 1` compared to `8`, is the same as x compared directly
90   --> $DIR/bit_masks.rs:55:5
91    |
92 55 |     x | 1 >= 8;
93    |     ^^^^^^^^^^
94
95 error: aborting due to 15 previous errors
96