rust/tests/ui/eval_order_dependence.stderr

52 lines
1.2 KiB
Plaintext
Raw Normal View History

error: unsequenced read of a variable
2018-12-09 23:27:19 -06:00
--> $DIR/eval_order_dependence.rs:24:9
2018-10-06 11:18:06 -05:00
|
2018-12-09 23:27:19 -06:00
24 | } + x;
| ^
2018-10-06 11:18:06 -05:00
|
= note: `-D clippy::eval-order-dependence` implied by `-D warnings`
note: whether read occurs before this write depends on evaluation order
2018-12-09 23:27:19 -06:00
--> $DIR/eval_order_dependence.rs:22:9
2018-10-06 11:18:06 -05:00
|
2018-12-09 23:27:19 -06:00
22 | x = 1;
| ^^^^^
error: unsequenced read of a variable
2018-12-09 23:27:19 -06:00
--> $DIR/eval_order_dependence.rs:27:5
|
2018-12-09 23:27:19 -06:00
27 | x += {
| ^
|
note: whether read occurs before this write depends on evaluation order
2018-12-09 23:27:19 -06:00
--> $DIR/eval_order_dependence.rs:28:9
|
2018-12-09 23:27:19 -06:00
28 | x = 20;
| ^^^^^^
error: unsequenced read of a variable
2018-12-09 23:27:19 -06:00
--> $DIR/eval_order_dependence.rs:40:12
|
2018-12-09 23:27:19 -06:00
40 | a: x,
| ^
|
note: whether read occurs before this write depends on evaluation order
2018-12-09 23:27:19 -06:00
--> $DIR/eval_order_dependence.rs:42:13
|
2018-12-09 23:27:19 -06:00
42 | x = 6;
| ^^^^^
error: unsequenced read of a variable
2018-12-09 23:27:19 -06:00
--> $DIR/eval_order_dependence.rs:49:9
|
2018-12-09 23:27:19 -06:00
49 | x += {
| ^
|
note: whether read occurs before this write depends on evaluation order
2018-12-09 23:27:19 -06:00
--> $DIR/eval_order_dependence.rs:50:13
|
2018-12-09 23:27:19 -06:00
50 | x = 20;
| ^^^^^^
2018-01-16 10:06:27 -06:00
error: aborting due to 4 previous errors