mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 10:13:54 +00:00
52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
error: unsequenced read of a variable
|
|
--> $DIR/eval_order_dependence.rs:24:9
|
|
|
|
|
24 | } + x;
|
|
| ^
|
|
|
|
|
= note: `-D clippy::eval-order-dependence` implied by `-D warnings`
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/eval_order_dependence.rs:22:9
|
|
|
|
|
22 | x = 1;
|
|
| ^^^^^
|
|
|
|
error: unsequenced read of a variable
|
|
--> $DIR/eval_order_dependence.rs:27:5
|
|
|
|
|
27 | x += {
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/eval_order_dependence.rs:28:9
|
|
|
|
|
28 | x = 20;
|
|
| ^^^^^^
|
|
|
|
error: unsequenced read of a variable
|
|
--> $DIR/eval_order_dependence.rs:40:12
|
|
|
|
|
40 | a: x,
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/eval_order_dependence.rs:42:13
|
|
|
|
|
42 | x = 6;
|
|
| ^^^^^
|
|
|
|
error: unsequenced read of a variable
|
|
--> $DIR/eval_order_dependence.rs:49:9
|
|
|
|
|
49 | x += {
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/eval_order_dependence.rs:50:13
|
|
|
|
|
50 | x = 20;
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|