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