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:12:5
21 12 | x += { x = 20; 2 }; //~ERROR unsequenced read
24 note: whether read occurs before this write depends on evaluation order
25 --> $DIR/eval_order_dependence.rs:12:12
27 12 | x += { x = 20; 2 }; //~ERROR unsequenced read
30 error: unsequenced read of a variable
31 --> $DIR/eval_order_dependence.rs:18:24
33 18 | 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:18:32
39 18 | let foo = Foo { a: x, .. { x = 6; base } };
42 error: unsequenced read of a variable
43 --> $DIR/eval_order_dependence.rs:23:9
45 23 | x += { x = 20; 2 }; //~ERROR unsequenced read
48 note: whether read occurs before this write depends on evaluation order
49 --> $DIR/eval_order_dependence.rs:23:16
51 23 | x += { x = 20; 2 }; //~ERROR unsequenced read
54 error: aborting due to 4 previous errors