]> git.lizzy.rs Git - rust.git/blob - tests/ui/suspicious_xor_used_as_pow.stderr
Auto merge of #9753 - smoelius:changelog, r=xFrednet
[rust.git] / tests / ui / suspicious_xor_used_as_pow.stderr
1 error: `^` is not the exponentiation operator
2   --> $DIR/suspicious_xor_used_as_pow.rs:19:13
3    |
4 LL |     let _ = 2 ^ 5;
5    |             ^^^^^ help: did you mean to write: `2.pow(5)`
6    |
7    = note: `-D clippy::suspicious-xor-used-as-pow` implied by `-D warnings`
8
9 error: `^` is not the exponentiation operator
10   --> $DIR/suspicious_xor_used_as_pow.rs:20:13
11    |
12 LL |     let _ = 2i32 ^ 9i32;
13    |             ^^^^^^^^^^^ help: did you mean to write: `2_i32.pow(9_i32)`
14
15 error: `^` is not the exponentiation operator
16   --> $DIR/suspicious_xor_used_as_pow.rs:21:13
17    |
18 LL |     let _ = 2i32 ^ 2i32;
19    |             ^^^^^^^^^^^ help: did you mean to write: `2_i32.pow(2_i32)`
20
21 error: `^` is not the exponentiation operator
22   --> $DIR/suspicious_xor_used_as_pow.rs:22:13
23    |
24 LL |     let _ = 50i32 ^ 3i32;
25    |             ^^^^^^^^^^^^ help: did you mean to write: `50_i32.pow(3_i32)`
26
27 error: `^` is not the exponentiation operator
28   --> $DIR/suspicious_xor_used_as_pow.rs:23:13
29    |
30 LL |     let _ = 5i32 ^ 8i32;
31    |             ^^^^^^^^^^^ help: did you mean to write: `5_i32.pow(8_i32)`
32
33 error: `^` is not the exponentiation operator
34   --> $DIR/suspicious_xor_used_as_pow.rs:24:13
35    |
36 LL |     let _ = 2i32 ^ 32i32;
37    |             ^^^^^^^^^^^^ help: did you mean to write: `2_i32.pow(32_i32)`
38
39 error: `^` is not the exponentiation operator
40   --> $DIR/suspicious_xor_used_as_pow.rs:13:9
41    |
42 LL |         1 ^ 2 // should warn even if inside macro
43    |         ^^^^^ help: did you mean to write: `1.pow(2)`
44 ...
45 LL |     macro_test_inside!();
46    |     -------------------- in this macro invocation
47    |
48    = note: this error originates in the macro `macro_test_inside` (in Nightly builds, run with -Z macro-backtrace for more info)
49
50 error: aborting due to 7 previous errors
51