]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/precedence.stderr
Auto merge of #3603 - xfix:random-state-lint, r=phansch
[rust.git] / tests / ui / precedence.stderr
index 3d5553ed0c36895f640d085276356a79761ae9ac..2d917b3cbdb23bf27bb4525ac16c9ca37e393152 100644 (file)
@@ -1,57 +1,57 @@
 error: operator precedence can trip the unwary
-  --> $DIR/precedence.rs:28:5
+  --> $DIR/precedence.rs:24:5
    |
-28 |     1 << 2 + 3;
+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:29:5
+  --> $DIR/precedence.rs:25:5
    |
-29 |     1 + 2 << 3;
+LL |     1 + 2 << 3;
    |     ^^^^^^^^^^ help: consider parenthesizing your expression: `(1 + 2) << 3`
 
 error: operator precedence can trip the unwary
-  --> $DIR/precedence.rs:30:5
+  --> $DIR/precedence.rs:26:5
    |
-30 |     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:31:5
+  --> $DIR/precedence.rs:27:5
    |
-31 |     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:32:5
+  --> $DIR/precedence.rs:28:5
    |
-32 |     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:33:5
+  --> $DIR/precedence.rs:29:5
    |
-33 |     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:34:5
+  --> $DIR/precedence.rs:30:5
    |
-34 |     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:35:5
+  --> $DIR/precedence.rs:31:5
    |
-35 |     -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:36:5
+  --> $DIR/precedence.rs:32:5
    |
-36 |     -1f32.abs();
+LL |     -1f32.abs();
    |     ^^^^^^^^^^^ help: consider adding parentheses to clarify your intent: `-(1f32.abs())`
 
 error: aborting due to 9 previous errors