]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/precedence.stderr
iterate List by value
[rust.git] / tests / ui / precedence.stderr
index 6090be0ab0f341cf439a2a82410dc16fb9c6cae9..a2ed5392bfc7c643593dbf24434ab8c05d1d3c93 100644 (file)
@@ -1,62 +1,58 @@
 error: operator precedence can trip the unwary
- --> $DIR/precedence.rs:8:5
-  |
-8 |     1 << 2 + 3;
-  |     ^^^^^^^^^^ help: consider parenthesizing your expression `1 << (2 + 3)`
-  |
-note: lint level defined here
- --> $DIR/precedence.rs:4:8
-  |
-4 | #[deny(precedence)]
-  |        ^^^^^^^^^^
+  --> $DIR/precedence.rs:17:5
+   |
+LL |     1 << 2 + 3;
+   |     ^^^^^^^^^^ help: consider parenthesizing your expression: `1 << (2 + 3)`
+   |
+   = note: `-D clippy::precedence` implied by `-D warnings`
 
 error: operator precedence can trip the unwary
--> $DIR/precedence.rs:9:5
-  |
-9 |     1 + 2 << 3;
-  |     ^^^^^^^^^^ help: consider parenthesizing your expression `(1 + 2) << 3`
 --> $DIR/precedence.rs:18:5
+   |
+LL |     1 + 2 << 3;
+   |     ^^^^^^^^^^ help: consider parenthesizing your expression: `(1 + 2) << 3`
 
 error: operator precedence can trip the unwary
-  --> $DIR/precedence.rs:10:5
+  --> $DIR/precedence.rs:19:5
    |
-10 |     4 >> 1 + 1;
-   |     ^^^^^^^^^^ help: consider parenthesizing your expression `4 >> (1 + 1)`
+LL |     4 >> 1 + 1;
+   |     ^^^^^^^^^^ help: consider parenthesizing your expression: `4 >> (1 + 1)`
 
 error: operator precedence can trip the unwary
-  --> $DIR/precedence.rs:11:5
+  --> $DIR/precedence.rs:20:5
    |
-11 |     1 + 3 >> 2;
-   |     ^^^^^^^^^^ help: consider parenthesizing your expression `(1 + 3) >> 2`
+LL |     1 + 3 >> 2;
+   |     ^^^^^^^^^^ help: consider parenthesizing your expression: `(1 + 3) >> 2`
 
 error: operator precedence can trip the unwary
-  --> $DIR/precedence.rs:12:5
+  --> $DIR/precedence.rs:21:5
    |
-12 |     1 ^ 1 - 1;
-   |     ^^^^^^^^^ help: consider parenthesizing your expression `1 ^ (1 - 1)`
+LL |     1 ^ 1 - 1;
+   |     ^^^^^^^^^ help: consider parenthesizing your expression: `1 ^ (1 - 1)`
 
 error: operator precedence can trip the unwary
-  --> $DIR/precedence.rs:13:5
+  --> $DIR/precedence.rs:22:5
    |
-13 |     3 | 2 - 1;
-   |     ^^^^^^^^^ help: consider parenthesizing your expression `3 | (2 - 1)`
+LL |     3 | 2 - 1;
+   |     ^^^^^^^^^ help: consider parenthesizing your expression: `3 | (2 - 1)`
 
 error: operator precedence can trip the unwary
-  --> $DIR/precedence.rs:14:5
+  --> $DIR/precedence.rs:23:5
    |
-14 |     3 & 5 - 2;
-   |     ^^^^^^^^^ help: consider parenthesizing your expression `3 & (5 - 2)`
+LL |     3 & 5 - 2;
+   |     ^^^^^^^^^ help: consider parenthesizing your expression: `3 & (5 - 2)`
 
 error: unary minus has lower precedence than method call
-  --> $DIR/precedence.rs:15:5
+  --> $DIR/precedence.rs:24:5
    |
-15 |     -1i32.abs();
-   |     ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent `-(1i32.abs())`
+LL |     -1i32.abs();
+   |     ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(1i32.abs())`
 
 error: unary minus has lower precedence than method call
-  --> $DIR/precedence.rs:16:5
+  --> $DIR/precedence.rs:25:5
    |
-16 |     -1f32.abs();
-   |     ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent `-(1f32.abs())`
+LL |     -1f32.abs();
+   |     ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(1f32.abs())`
 
 error: aborting due to 9 previous errors