mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 02:24:35 +00:00
52 lines
1.2 KiB
Plaintext
52 lines
1.2 KiB
Plaintext
error: unsequenced read of `x`
|
|
--> $DIR/eval_order_dependence.rs:14:9
|
|
|
|
|
LL | } + 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:12:9
|
|
|
|
|
LL | x = 1;
|
|
| ^^^^^
|
|
|
|
error: unsequenced read of `x`
|
|
--> $DIR/eval_order_dependence.rs:17:5
|
|
|
|
|
LL | x += {
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/eval_order_dependence.rs:18:9
|
|
|
|
|
LL | x = 20;
|
|
| ^^^^^^
|
|
|
|
error: unsequenced read of `x`
|
|
--> $DIR/eval_order_dependence.rs:30:12
|
|
|
|
|
LL | a: x,
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/eval_order_dependence.rs:32:13
|
|
|
|
|
LL | x = 6;
|
|
| ^^^^^
|
|
|
|
error: unsequenced read of `x`
|
|
--> $DIR/eval_order_dependence.rs:39:9
|
|
|
|
|
LL | x += {
|
|
| ^
|
|
|
|
|
note: whether read occurs before this write depends on evaluation order
|
|
--> $DIR/eval_order_dependence.rs:40:13
|
|
|
|
|
LL | x = 20;
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 4 previous errors
|
|
|