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