rust/tests/ui/eval_order_dependence.stderr

52 lines
1.2 KiB
Plaintext
Raw Normal View History

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