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