1 error: unsequenced read of a variable
2 --> $DIR/eval_order_dependence.rs:18:28
4 18 | let a = { x = 1; 1 } + x;
7 = note: `-D clippy::eval-order-dependence` implied by `-D warnings`
8 note: whether read occurs before this write depends on evaluation order
9 --> $DIR/eval_order_dependence.rs:18:15
11 18 | let a = { x = 1; 1 } + x;
14 error: unsequenced read of a variable
15 --> $DIR/eval_order_dependence.rs:21:5
17 21 | x += { x = 20; 2 };
20 note: whether read occurs before this write depends on evaluation order
21 --> $DIR/eval_order_dependence.rs:21:12
23 21 | x += { x = 20; 2 };
26 error: unsequenced read of a variable
27 --> $DIR/eval_order_dependence.rs:27:24
29 27 | let foo = Foo { a: x, .. { x = 6; base } };
32 note: whether read occurs before this write depends on evaluation order
33 --> $DIR/eval_order_dependence.rs:27:32
35 27 | let foo = Foo { a: x, .. { x = 6; base } };
38 error: unsequenced read of a variable
39 --> $DIR/eval_order_dependence.rs:31:9
41 31 | x += { x = 20; 2 };
44 note: whether read occurs before this write depends on evaluation order
45 --> $DIR/eval_order_dependence.rs:31:16
47 31 | x += { x = 20; 2 };
50 error: aborting due to 4 previous errors