rust/tests/ui/eval_order_dependence.stderr

52 lines
1.2 KiB
Text
Raw Normal View History

2021-05-05 21:44:32 +02:00
error: unsequenced read of `x`
--> $DIR/eval_order_dependence.rs:16:9
2018-10-06 18:18:06 +02:00
|
2018-12-27 16:57:55 +01:00
LL | } + x;
2018-12-10 06:27:19 +01:00
| ^
2018-10-06 18:18:06 +02:00
|
= 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:14:9
2018-10-06 18:18:06 +02:00
|
2018-12-27 16:57:55 +01:00
LL | x = 1;
2018-12-10 06:27:19 +01:00
| ^^^^^
2021-05-05 21:44:32 +02:00
error: unsequenced read of `x`
--> $DIR/eval_order_dependence.rs:19:5
|
2018-12-27 16:57:55 +01:00
LL | x += {
| ^
|
note: whether read occurs before this write depends on evaluation order
--> $DIR/eval_order_dependence.rs:20:9
|
2018-12-27 16:57:55 +01:00
LL | x = 20;
2018-12-10 06:27:19 +01:00
| ^^^^^^
2021-05-05 21:44:32 +02:00
error: unsequenced read of `x`
--> $DIR/eval_order_dependence.rs:32:12
|
2018-12-27 16:57:55 +01:00
LL | a: x,
2018-12-10 06:27:19 +01:00
| ^
|
note: whether read occurs before this write depends on evaluation order
--> $DIR/eval_order_dependence.rs:34:13
|
2018-12-27 16:57:55 +01:00
LL | x = 6;
2018-12-10 06:27:19 +01:00
| ^^^^^
2021-05-05 21:44:32 +02:00
error: unsequenced read of `x`
--> $DIR/eval_order_dependence.rs:41:9
|
2018-12-27 16:57:55 +01:00
LL | x += {
| ^
|
note: whether read occurs before this write depends on evaluation order
--> $DIR/eval_order_dependence.rs:42:13
|
2018-12-27 16:57:55 +01:00
LL | x = 20;
2018-12-10 06:27:19 +01:00
| ^^^^^^
2018-01-16 17:06:27 +01:00
error: aborting due to 4 previous errors