rust/tests/ui/eval_order_dependence.stderr

52 lines
1.4 KiB
Plaintext
Raw Normal View History

error: unsequenced read of a variable
2017-08-01 10:54:21 -05:00
--> $DIR/eval_order_dependence.rs:8:28
|
8 | let a = { x = 1; 1 } + x;
| ^
|
= note: `-D eval-order-dependence` implied by `-D warnings`
note: whether read occurs before this write depends on evaluation order
2017-08-01 10:54:21 -05:00
--> $DIR/eval_order_dependence.rs:8:15
|
8 | let a = { x = 1; 1 } + x;
| ^^^^^
error: unsequenced read of a variable
2017-08-01 10:54:21 -05:00
--> $DIR/eval_order_dependence.rs:11:5
|
11 | x += { x = 20; 2 };
| ^
|
note: whether read occurs before this write depends on evaluation order
2017-08-01 10:54:21 -05:00
--> $DIR/eval_order_dependence.rs:11:12
|
11 | x += { x = 20; 2 };
| ^^^^^^
error: unsequenced read of a variable
2017-08-01 10:54:21 -05:00
--> $DIR/eval_order_dependence.rs:17:24
|
17 | let foo = Foo { a: x, .. { x = 6; base } };
| ^
|
note: whether read occurs before this write depends on evaluation order
2017-08-01 10:54:21 -05:00
--> $DIR/eval_order_dependence.rs:17:32
|
17 | let foo = Foo { a: x, .. { x = 6; base } };
| ^^^^^
error: unsequenced read of a variable
2017-08-01 10:54:21 -05:00
--> $DIR/eval_order_dependence.rs:21:9
|
21 | x += { x = 20; 2 };
| ^
|
note: whether read occurs before this write depends on evaluation order
2017-08-01 10:54:21 -05:00
--> $DIR/eval_order_dependence.rs:21:16
|
21 | x += { x = 20; 2 };
| ^^^^^^
2018-01-16 10:06:27 -06:00
error: aborting due to 4 previous errors