1 error: unsequenced read of a variable
2 --> $DIR/eval_order_dependence.rs:8:28
4 8 | let a = { x = 1; 1 } + x;
7 note: lint level defined here
8 --> $DIR/eval_order_dependence.rs:4:8
10 4 | #[deny(eval_order_dependence)]
11 | ^^^^^^^^^^^^^^^^^^^^^
12 note: whether read occurs before this write depends on evaluation order
13 --> $DIR/eval_order_dependence.rs:8:15
15 8 | let a = { x = 1; 1 } + x;
18 error: unsequenced read of a variable
19 --> $DIR/eval_order_dependence.rs:11:5
21 11 | x += { x = 20; 2 };
24 note: whether read occurs before this write depends on evaluation order
25 --> $DIR/eval_order_dependence.rs:11:12
27 11 | x += { x = 20; 2 };
30 error: unsequenced read of a variable
31 --> $DIR/eval_order_dependence.rs:17:24
33 17 | let foo = Foo { a: x, .. { x = 6; base } };
36 note: whether read occurs before this write depends on evaluation order
37 --> $DIR/eval_order_dependence.rs:17:32
39 17 | let foo = Foo { a: x, .. { x = 6; base } };
42 error: unsequenced read of a variable
43 --> $DIR/eval_order_dependence.rs:21:9
45 21 | x += { x = 20; 2 };
48 note: whether read occurs before this write depends on evaluation order
49 --> $DIR/eval_order_dependence.rs:21:16
51 21 | x += { x = 20; 2 };
54 error: aborting due to 4 previous errors