]> git.lizzy.rs Git - rust.git/blob - tests/ui/precedence.stderr
Merge pull request #1747 from Manishearth/mut_fp
[rust.git] / tests / ui / precedence.stderr
1 error: operator precedence can trip the unwary
2  --> $DIR/precedence.rs:8:5
3   |
4 8 |     1 << 2 + 3;
5   |     ^^^^^^^^^^ help: consider parenthesizing your expression `1 << (2 + 3)`
6   |
7 note: lint level defined here
8  --> $DIR/precedence.rs:4:8
9   |
10 4 | #[deny(precedence)]
11   |        ^^^^^^^^^^
12
13 error: operator precedence can trip the unwary
14  --> $DIR/precedence.rs:9:5
15   |
16 9 |     1 + 2 << 3;
17   |     ^^^^^^^^^^ help: consider parenthesizing your expression `(1 + 2) << 3`
18
19 error: operator precedence can trip the unwary
20   --> $DIR/precedence.rs:10:5
21    |
22 10 |     4 >> 1 + 1;
23    |     ^^^^^^^^^^ help: consider parenthesizing your expression `4 >> (1 + 1)`
24
25 error: operator precedence can trip the unwary
26   --> $DIR/precedence.rs:11:5
27    |
28 11 |     1 + 3 >> 2;
29    |     ^^^^^^^^^^ help: consider parenthesizing your expression `(1 + 3) >> 2`
30
31 error: operator precedence can trip the unwary
32   --> $DIR/precedence.rs:12:5
33    |
34 12 |     1 ^ 1 - 1;
35    |     ^^^^^^^^^ help: consider parenthesizing your expression `1 ^ (1 - 1)`
36
37 error: operator precedence can trip the unwary
38   --> $DIR/precedence.rs:13:5
39    |
40 13 |     3 | 2 - 1;
41    |     ^^^^^^^^^ help: consider parenthesizing your expression `3 | (2 - 1)`
42
43 error: operator precedence can trip the unwary
44   --> $DIR/precedence.rs:14:5
45    |
46 14 |     3 & 5 - 2;
47    |     ^^^^^^^^^ help: consider parenthesizing your expression `3 & (5 - 2)`
48
49 error: unary minus has lower precedence than method call
50   --> $DIR/precedence.rs:15:5
51    |
52 15 |     -1i32.abs();
53    |     ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent `-(1i32.abs())`
54
55 error: unary minus has lower precedence than method call
56   --> $DIR/precedence.rs:16:5
57    |
58 16 |     -1f32.abs();
59    |     ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent `-(1f32.abs())`
60
61 error: aborting due to 9 previous errors
62