|
1 | | -error: it appears you are trying to get a power of two, but `^` is not an exponentiation operator |
2 | | - --> $DIR/xor_used_as_pow.rs:24:13 |
3 | | - | |
4 | | -LL | let _ = 2 ^ 3; |
5 | | - | ^^^^^ help: use a bitshift or constant instead: `1_u32 << 3` |
6 | | - | |
7 | | - = note: `-D clippy::xor-used-as-pow` implied by `-D warnings` |
8 | | - |
9 | 1 | error: `^` is not an exponentiation operator but appears to have been used as one |
10 | | - --> $DIR/xor_used_as_pow.rs:25:13 |
| 2 | + --> $DIR/xor_used_as_pow.rs:24:13 |
11 | 3 | | |
12 | 4 | LL | let _ = 10 ^ 4; |
13 | 5 | | ^^^^^^ |
14 | 6 | | |
| 7 | + = note: `-D clippy::xor-used-as-pow` implied by `-D warnings` |
15 | 8 | = help: did you mean to use .pow()? |
16 | 9 |
|
17 | | -error: it appears you are trying to get a power of two, but `^` is not an exponentiation operator |
18 | | - --> $DIR/xor_used_as_pow.rs:26:13 |
19 | | - | |
20 | | -LL | let _ = 2 ^ 32; |
21 | | - | ^^^^^^ help: use a bitshift or constant instead: `1_u64 << 32` |
22 | | - |
23 | | -error: it appears you are trying to get a power of two, but `^` is not an exponentiation operator |
24 | | - --> $DIR/xor_used_as_pow.rs:27:13 |
25 | | - | |
26 | | -LL | let _ = 2 ^ 0; |
27 | | - | ^^^^^ help: use a bitshift or constant instead: `1` |
28 | | - |
29 | | -error: `^` is not an exponentiation operator but appears to have been used as one |
30 | | - --> $DIR/xor_used_as_pow.rs:28:13 |
31 | | - | |
32 | | -LL | let _ = 10 ^ 0; |
33 | | - | ^^^^^^ |
34 | | - | |
35 | | - = help: did you mean to use .pow()? |
36 | | - |
37 | | -error: it appears you are trying to get a power of two, but `^` is not an exponentiation operator |
38 | | - --> $DIR/xor_used_as_pow.rs:31:17 |
39 | | - | |
40 | | -LL | let _ = 2 ^ x; |
41 | | - | ^^^^^ help: use a bitshift or constant instead: `1 << x` |
42 | | - |
43 | 10 | error: `^` is not an exponentiation operator but appears to have been used as one |
44 | | - --> $DIR/xor_used_as_pow.rs:32:17 |
| 11 | + --> $DIR/xor_used_as_pow.rs:27:17 |
45 | 12 | | |
46 | 13 | LL | let _ = 10 ^ x; |
47 | 14 | | ^^^^^^ |
48 | 15 | | |
49 | 16 | = help: did you mean to use .pow()? |
50 | 17 |
|
51 | | -error: aborting due to 7 previous errors |
| 18 | +error: aborting due to 2 previous errors |
52 | 19 |
|
0 commit comments