2021-05-06 11:51:22 +02:00
|
|
|
error: unsequenced read of `x`
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/mixed_read_write_in_expression.rs:14:9
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | } + x;
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2017-02-07 21:05:30 +01:00
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/mixed_read_write_in_expression.rs:12:9
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | x = 1;
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^
|
2022-09-22 20:04:22 +04:00
|
|
|
= note: `-D clippy::mixed-read-write-in-expression` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::mixed_read_write_in_expression)]`
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2021-05-06 11:51:22 +02:00
|
|
|
error: unsequenced read of `x`
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/mixed_read_write_in_expression.rs:18:5
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | x += {
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/mixed_read_write_in_expression.rs:20:9
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | x = 20;
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2021-05-06 11:51:22 +02:00
|
|
|
error: unsequenced read of `x`
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/mixed_read_write_in_expression.rs:32:12
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | a: x,
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/mixed_read_write_in_expression.rs:35:13
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | x = 6;
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2021-05-06 11:51:22 +02:00
|
|
|
error: unsequenced read of `x`
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/mixed_read_write_in_expression.rs:42:9
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | x += {
|
2017-02-07 21:05:30 +01:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
2024-02-27 15:25:18 +01:00
|
|
|
--> tests/ui/mixed_read_write_in_expression.rs:44:13
|
2017-02-07 21:05:30 +01:00
|
|
|
|
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | x = 20;
|
2018-12-10 06:27:19 +01:00
|
|
|
| ^^^^^^
|
2017-02-07 21:05:30 +01:00
|
|
|
|
2018-01-16 17:06:27 +01:00
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|