2017-02-07 21:05:30 +01:00
|
|
|
error: unsequenced read of a variable
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/eval_order_dependence.rs:8:28
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
|
8 | let a = { x = 1; 1 } + x;
|
|
|
|
| ^
|
|
|
|
|
|
2017-05-17 14:19:44 +02:00
|
|
|
= note: `-D eval-order-dependence` implied by `-D warnings`
|
2017-02-07 21:05:30 +01:00
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/eval_order_dependence.rs:8:15
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
|
8 | let a = { x = 1; 1 } + x;
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: unsequenced read of a variable
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/eval_order_dependence.rs:11:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 13:08:07 +02:00
|
|
|
11 | x += { x = 20; 2 };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/eval_order_dependence.rs:11:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 13:08:07 +02:00
|
|
|
11 | x += { x = 20; 2 };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
error: unsequenced read of a variable
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/eval_order_dependence.rs:17:24
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 13:08:07 +02:00
|
|
|
17 | let foo = Foo { a: x, .. { x = 6; base } };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/eval_order_dependence.rs:17:32
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 13:08:07 +02:00
|
|
|
17 | let foo = Foo { a: x, .. { x = 6; base } };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: unsequenced read of a variable
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/eval_order_dependence.rs:21:9
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 13:08:07 +02:00
|
|
|
21 | x += { x = 20; 2 };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2017-08-01 17:54:21 +02:00
|
|
|
--> $DIR/eval_order_dependence.rs:21:16
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2017-05-11 13:08:07 +02:00
|
|
|
21 | x += { x = 20; 2 };
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^^^^^^
|
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|