]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/eval_order_dependence.stderr
iterate List by value
[rust.git] / tests / ui / eval_order_dependence.stderr
index 3caba829be42d64771a8d2cce31b85d90b1134d8..8f4fa2228f7f4d7f7eff5594a51a23ef28116900 100644 (file)
@@ -1,51 +1,51 @@
 error: unsequenced read of a variable
- --> $DIR/eval_order_dependence.rs:8:28
-  |
-8 |     let a = { x = 1; 1 } + x;
-  |                            ^
-  |
-  = note: `-D clippy::eval-order-dependence` implied by `-D warnings`
+  --> $DIR/eval_order_dependence.rs:15:9
+   |
+LL |     } + x;
+   |         ^
+   |
+   = note: `-D clippy::eval-order-dependence` implied by `-D warnings`
 note: whether read occurs before this write depends on evaluation order
- --> $DIR/eval_order_dependence.rs:8:15
-  |
-8 |     let a = { x = 1; 1 } + x;
-  |               ^^^^^
+  --> $DIR/eval_order_dependence.rs:13:9
+   |
+LL |         x = 1;
+   |         ^^^^^
 
 error: unsequenced read of a variable
-  --> $DIR/eval_order_dependence.rs:11:5
+  --> $DIR/eval_order_dependence.rs:18:5
    |
-11 |     x += { x = 20; 2 };
+LL |     x += {
    |     ^
    |
 note: whether read occurs before this write depends on evaluation order
-  --> $DIR/eval_order_dependence.rs:11:12
+  --> $DIR/eval_order_dependence.rs:19:9
    |
-11 |     x += { x = 20; 2 };
-   |            ^^^^^^
+LL |         x = 20;
+   |         ^^^^^^
 
 error: unsequenced read of a variable
-  --> $DIR/eval_order_dependence.rs:17:24
+  --> $DIR/eval_order_dependence.rs:31:12
    |
-17 |     let foo = Foo { a: x, .. { x = 6; base } };
-   |                        ^
+LL |         a: x,
+   |            ^
    |
 note: whether read occurs before this write depends on evaluation order
-  --> $DIR/eval_order_dependence.rs:17:32
+  --> $DIR/eval_order_dependence.rs:33:13
    |
-17 |     let foo = Foo { a: x, .. { x = 6; base } };
-   |                                ^^^^^
+LL |             x = 6;
+   |             ^^^^^
 
 error: unsequenced read of a variable
-  --> $DIR/eval_order_dependence.rs:21:9
+  --> $DIR/eval_order_dependence.rs:40:9
    |
-21 |         x += { x = 20; 2 };
+LL |         x += {
    |         ^
    |
 note: whether read occurs before this write depends on evaluation order
-  --> $DIR/eval_order_dependence.rs:21:16
+  --> $DIR/eval_order_dependence.rs:41:13
    |
-21 |         x += { x = 20; 2 };
-   |                ^^^^^^
+LL |             x = 20;
+   |             ^^^^^^
 
 error: aborting due to 4 previous errors