error: unsequenced read of a variable
- --> $DIR/eval_order_dependence.rs:24:9
+ --> $DIR/eval_order_dependence.rs:15:9
|
-24 | } + x;
+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:22:9
+ --> $DIR/eval_order_dependence.rs:13:9
|
-22 | x = 1;
+LL | x = 1;
| ^^^^^
error: unsequenced read of a variable
- --> $DIR/eval_order_dependence.rs:27:5
+ --> $DIR/eval_order_dependence.rs:18:5
|
-27 | x += {
+LL | x += {
| ^
|
note: whether read occurs before this write depends on evaluation order
- --> $DIR/eval_order_dependence.rs:28:9
+ --> $DIR/eval_order_dependence.rs:19:9
|
-28 | x = 20;
+LL | x = 20;
| ^^^^^^
error: unsequenced read of a variable
- --> $DIR/eval_order_dependence.rs:40:12
+ --> $DIR/eval_order_dependence.rs:31:12
|
-40 | a: x,
+LL | a: x,
| ^
|
note: whether read occurs before this write depends on evaluation order
- --> $DIR/eval_order_dependence.rs:42:13
+ --> $DIR/eval_order_dependence.rs:33:13
|
-42 | x = 6;
+LL | x = 6;
| ^^^^^
error: unsequenced read of a variable
- --> $DIR/eval_order_dependence.rs:49:9
+ --> $DIR/eval_order_dependence.rs:40:9
|
-49 | x += {
+LL | x += {
| ^
|
note: whether read occurs before this write depends on evaluation order
- --> $DIR/eval_order_dependence.rs:50:13
+ --> $DIR/eval_order_dependence.rs:41:13
|
-50 | x = 20;
+LL | x = 20;
| ^^^^^^
error: aborting due to 4 previous errors