2017-02-07 21:05:30 +01:00
|
|
|
error: operator precedence can trip the unwary
|
2017-05-17 17:51:35 +02:00
|
|
|
--> precedence.rs:8:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
|
8 | 1 << 2 + 3;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^ help: consider parenthesizing your expression `1 << (2 + 3)`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
= note: `-D precedence` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: operator precedence can trip the unwary
|
2017-05-17 17:51:35 +02:00
|
|
|
--> precedence.rs:9:5
|
2017-05-11 16:32:42 +02:00
|
|
|
|
|
|
|
|
9 | 1 + 2 << 3;
|
|
|
|
| ^^^^^^^^^^ help: consider parenthesizing your expression `(1 + 2) << 3`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: operator precedence can trip the unwary
|
2017-05-17 17:51:35 +02:00
|
|
|
--> precedence.rs:10:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:32:42 +02:00
|
|
|
10 | 4 >> 1 + 1;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^ help: consider parenthesizing your expression `4 >> (1 + 1)`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: operator precedence can trip the unwary
|
2017-05-17 17:51:35 +02:00
|
|
|
--> precedence.rs:11:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:32:42 +02:00
|
|
|
11 | 1 + 3 >> 2;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^ help: consider parenthesizing your expression `(1 + 3) >> 2`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: operator precedence can trip the unwary
|
2017-05-17 17:51:35 +02:00
|
|
|
--> precedence.rs:12:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:32:42 +02:00
|
|
|
12 | 1 ^ 1 - 1;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^ help: consider parenthesizing your expression `1 ^ (1 - 1)`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: operator precedence can trip the unwary
|
2017-05-17 17:51:35 +02:00
|
|
|
--> precedence.rs:13:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:32:42 +02:00
|
|
|
13 | 3 | 2 - 1;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^ help: consider parenthesizing your expression `3 | (2 - 1)`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: operator precedence can trip the unwary
|
2017-05-17 17:51:35 +02:00
|
|
|
--> precedence.rs:14:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:32:42 +02:00
|
|
|
14 | 3 & 5 - 2;
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^ help: consider parenthesizing your expression `3 & (5 - 2)`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: unary minus has lower precedence than method call
|
2017-05-17 17:51:35 +02:00
|
|
|
--> precedence.rs:15:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:32:42 +02:00
|
|
|
15 | -1i32.abs();
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent `-(1i32.abs())`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
error: unary minus has lower precedence than method call
|
2017-05-17 17:51:35 +02:00
|
|
|
--> precedence.rs:16:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 16:32:42 +02:00
|
|
|
16 | -1f32.abs();
|
2017-05-03 12:51:47 +02:00
|
|
|
| ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent `-(1f32.abs())`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-07-03 06:37:30 +02:00
|
|
|
error: aborting due to 9 previous errors
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|