|
1 | 1 | error: operator precedence can trip the unwary
|
2 |
| - --> $DIR/precedence.rs:15:5 |
| 2 | + --> $DIR/precedence.rs:17:5 |
3 | 3 | |
|
4 | 4 | LL | 1 << 2 + 3;
|
5 | 5 | | ^^^^^^^^^^ help: consider parenthesizing your expression: `1 << (2 + 3)`
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::precedence` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: operator precedence can trip the unwary
|
10 |
| - --> $DIR/precedence.rs:16:5 |
| 10 | + --> $DIR/precedence.rs:18:5 |
11 | 11 | |
|
12 | 12 | LL | 1 + 2 << 3;
|
13 | 13 | | ^^^^^^^^^^ help: consider parenthesizing your expression: `(1 + 2) << 3`
|
14 | 14 |
|
15 | 15 | error: operator precedence can trip the unwary
|
16 |
| - --> $DIR/precedence.rs:17:5 |
| 16 | + --> $DIR/precedence.rs:19:5 |
17 | 17 | |
|
18 | 18 | LL | 4 >> 1 + 1;
|
19 | 19 | | ^^^^^^^^^^ help: consider parenthesizing your expression: `4 >> (1 + 1)`
|
20 | 20 |
|
21 | 21 | error: operator precedence can trip the unwary
|
22 |
| - --> $DIR/precedence.rs:18:5 |
| 22 | + --> $DIR/precedence.rs:20:5 |
23 | 23 | |
|
24 | 24 | LL | 1 + 3 >> 2;
|
25 | 25 | | ^^^^^^^^^^ help: consider parenthesizing your expression: `(1 + 3) >> 2`
|
26 | 26 |
|
27 | 27 | error: operator precedence can trip the unwary
|
28 |
| - --> $DIR/precedence.rs:19:5 |
| 28 | + --> $DIR/precedence.rs:21:5 |
29 | 29 | |
|
30 | 30 | LL | 1 ^ 1 - 1;
|
31 | 31 | | ^^^^^^^^^ help: consider parenthesizing your expression: `1 ^ (1 - 1)`
|
32 | 32 |
|
33 | 33 | error: operator precedence can trip the unwary
|
34 |
| - --> $DIR/precedence.rs:20:5 |
| 34 | + --> $DIR/precedence.rs:22:5 |
35 | 35 | |
|
36 | 36 | LL | 3 | 2 - 1;
|
37 | 37 | | ^^^^^^^^^ help: consider parenthesizing your expression: `3 | (2 - 1)`
|
38 | 38 |
|
39 | 39 | error: operator precedence can trip the unwary
|
40 |
| - --> $DIR/precedence.rs:21:5 |
| 40 | + --> $DIR/precedence.rs:23:5 |
41 | 41 | |
|
42 | 42 | LL | 3 & 5 - 2;
|
43 | 43 | | ^^^^^^^^^ help: consider parenthesizing your expression: `3 & (5 - 2)`
|
44 | 44 |
|
45 | 45 | error: unary minus has lower precedence than method call
|
46 |
| - --> $DIR/precedence.rs:22:5 |
| 46 | + --> $DIR/precedence.rs:24:5 |
47 | 47 | |
|
48 | 48 | LL | -1i32.abs();
|
49 | 49 | | ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(1i32.abs())`
|
50 | 50 |
|
51 | 51 | error: unary minus has lower precedence than method call
|
52 |
| - --> $DIR/precedence.rs:23:5 |
| 52 | + --> $DIR/precedence.rs:25:5 |
53 | 53 | |
|
54 | 54 | LL | -1f32.abs();
|
55 | 55 | | ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(1f32.abs())`
|
|
0 commit comments