2021-05-06 04:51:22 -05:00
|
|
|
error: unsequenced read of `x`
|
2021-11-04 07:52:36 -05:00
|
|
|
--> $DIR/eval_order_dependence.rs:14:9
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | } + x;
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::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
|
2021-11-04 07:52:36 -05:00
|
|
|
--> $DIR/eval_order_dependence.rs:12:9
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | x = 1;
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2021-05-06 04:51:22 -05:00
|
|
|
error: unsequenced read of `x`
|
2021-11-04 07:52:36 -05:00
|
|
|
--> $DIR/eval_order_dependence.rs:17:5
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | x += {
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2021-11-04 07:52:36 -05:00
|
|
|
--> $DIR/eval_order_dependence.rs:18:9
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | x = 20;
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2021-05-06 04:51:22 -05:00
|
|
|
error: unsequenced read of `x`
|
2021-11-04 07:52:36 -05:00
|
|
|
--> $DIR/eval_order_dependence.rs:30:12
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | a: x,
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2021-11-04 07:52:36 -05:00
|
|
|
--> $DIR/eval_order_dependence.rs:32:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | x = 6;
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2021-05-06 04:51:22 -05:00
|
|
|
error: unsequenced read of `x`
|
2021-11-04 07:52:36 -05:00
|
|
|
--> $DIR/eval_order_dependence.rs:39:9
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | x += {
|
2017-02-07 14:05:30 -06:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2021-11-04 07:52:36 -05:00
|
|
|
--> $DIR/eval_order_dependence.rs:40:13
|
2017-02-07 14:05:30 -06:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | x = 20;
|
2018-12-09 23:27:19 -06:00
|
|
|
| ^^^^^^
|
2017-02-07 14:05:30 -06:00
|
|
|
|
2018-01-16 10:06:27 -06:00
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|