]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/precedence.stderr
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / clippy / tests / ui / precedence.stderr
CommitLineData
f20569fa
XL
1error: operator precedence can trip the unwary
2 --> $DIR/precedence.rs:17:5
3 |
4LL | 1 << 2 + 3;
5 | ^^^^^^^^^^ help: consider parenthesizing your expression: `1 << (2 + 3)`
6 |
7 = note: `-D clippy::precedence` implied by `-D warnings`
8
9error: operator precedence can trip the unwary
10 --> $DIR/precedence.rs:18:5
11 |
12LL | 1 + 2 << 3;
13 | ^^^^^^^^^^ help: consider parenthesizing your expression: `(1 + 2) << 3`
14
15error: operator precedence can trip the unwary
16 --> $DIR/precedence.rs:19:5
17 |
18LL | 4 >> 1 + 1;
19 | ^^^^^^^^^^ help: consider parenthesizing your expression: `4 >> (1 + 1)`
20
21error: operator precedence can trip the unwary
22 --> $DIR/precedence.rs:20:5
23 |
24LL | 1 + 3 >> 2;
25 | ^^^^^^^^^^ help: consider parenthesizing your expression: `(1 + 3) >> 2`
26
27error: operator precedence can trip the unwary
28 --> $DIR/precedence.rs:21:5
29 |
30LL | 1 ^ 1 - 1;
31 | ^^^^^^^^^ help: consider parenthesizing your expression: `1 ^ (1 - 1)`
32
33error: operator precedence can trip the unwary
34 --> $DIR/precedence.rs:22:5
35 |
36LL | 3 | 2 - 1;
37 | ^^^^^^^^^ help: consider parenthesizing your expression: `3 | (2 - 1)`
38
39error: operator precedence can trip the unwary
40 --> $DIR/precedence.rs:23:5
41 |
42LL | 3 & 5 - 2;
43 | ^^^^^^^^^ help: consider parenthesizing your expression: `3 & (5 - 2)`
44
45error: unary minus has lower precedence than method call
46 --> $DIR/precedence.rs:24:5
47 |
48LL | -1i32.abs();
49 | ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(1i32.abs())`
50
51error: unary minus has lower precedence than method call
52 --> $DIR/precedence.rs:25:5
53 |
54LL | -1f32.abs();
55 | ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(1f32.abs())`
56
57error: unary minus has lower precedence than method call
58 --> $DIR/precedence.rs:52:13
59 |
60LL | let _ = -1.0_f64.cos().cos();
61 | ^^^^^^^^^^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(1.0_f64.cos().cos())`
62
63error: unary minus has lower precedence than method call
64 --> $DIR/precedence.rs:53:13
65 |
66LL | let _ = -1.0_f64.cos().sin();
67 | ^^^^^^^^^^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(1.0_f64.cos().sin())`
68
69error: unary minus has lower precedence than method call
70 --> $DIR/precedence.rs:54:13
71 |
72LL | let _ = -1.0_f64.sin().cos();
73 | ^^^^^^^^^^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(1.0_f64.sin().cos())`
74
75error: aborting due to 12 previous errors
76