mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
error: unsequenced read of `x`
|
|
--> $DIR/mixed_read_write_in_expression.rs:14:9
|
|
|
|
|
LL | } + x;
|
|
| ^
|
|
|
|
|
= note: `-D clippy::mixed-read-write-in-expression` implied by `-D warnings`
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/mixed_read_write_in_expression.rs:12:9
|
|
|
|
|
LL | x = 1;
|
|
| ^^^^^
|
|
|
|
error: unsequenced read of `x`
|
|
--> $DIR/mixed_read_write_in_expression.rs:17:5
|
|
|
|
|
LL | x += {
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/mixed_read_write_in_expression.rs:18:9
|
|
|
|
|
LL | x = 20;
|
|
| ^^^^^^
|
|
|
|
error: unsequenced read of `x`
|
|
--> $DIR/mixed_read_write_in_expression.rs:30:12
|
|
|
|
|
LL | a: x,
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/mixed_read_write_in_expression.rs:32:13
|
|
|
|
|
LL | x = 6;
|
|
| ^^^^^
|
|
|
|
error: unsequenced read of `x`
|
|
--> $DIR/mixed_read_write_in_expression.rs:39:9
|
|
|
|
|
LL | x += {
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/mixed_read_write_in_expression.rs:40:13
|
|
|
|
|
LL | x = 20;
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|