2021-05-05 19:44:32 +00:00
|
|
|
error: unsequenced read of `x`
|
2022-05-03 14:56:59 +00:00
|
|
|
--> $DIR/mixed_read_write_in_expression.rs:14:9
|
2018-10-06 16:18:06 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | } + x;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^
|
2018-10-06 16:18:06 +00:00
|
|
|
|
|
2022-05-03 14:56:59 +00:00
|
|
|
= note: `-D clippy::mixed-read-write-in-expression` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2022-05-03 14:56:59 +00:00
|
|
|
--> $DIR/mixed_read_write_in_expression.rs:12:9
|
2018-10-06 16:18:06 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | x = 1;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2021-05-05 19:44:32 +00:00
|
|
|
error: unsequenced read of `x`
|
2022-05-03 14:56:59 +00:00
|
|
|
--> $DIR/mixed_read_write_in_expression.rs:17:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | x += {
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2022-05-03 14:56:59 +00:00
|
|
|
--> $DIR/mixed_read_write_in_expression.rs:18:9
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | x = 20;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2021-05-05 19:44:32 +00:00
|
|
|
error: unsequenced read of `x`
|
2022-05-03 14:56:59 +00:00
|
|
|
--> $DIR/mixed_read_write_in_expression.rs:30:12
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | a: x,
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2022-05-03 14:56:59 +00:00
|
|
|
--> $DIR/mixed_read_write_in_expression.rs:32:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | x = 6;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2021-05-05 19:44:32 +00:00
|
|
|
error: unsequenced read of `x`
|
2022-05-03 14:56:59 +00:00
|
|
|
--> $DIR/mixed_read_write_in_expression.rs:39:9
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | x += {
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2022-05-03 14:56:59 +00:00
|
|
|
--> $DIR/mixed_read_write_in_expression.rs:40:13
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | x = 20;
|
2018-12-10 05:27:19 +00:00
|
|
|
| ^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2018-01-16 16:06:27 +00:00
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|