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