1 error: unsequenced read of a variable
2 --> eval_order_dependence.rs:8:28
4 8 | let a = { x = 1; 1 } + x;
7 = note: `-D eval-order-dependence` implied by `-D warnings`
8 note: whether read occurs before this write depends on evaluation order
9 --> eval_order_dependence.rs:8:15
11 8 | let a = { x = 1; 1 } + x;
14 error: unsequenced read of a variable
15 --> eval_order_dependence.rs:11:5
17 11 | x += { x = 20; 2 };
20 = note: `-D eval-order-dependence` implied by `-D warnings`
21 note: whether read occurs before this write depends on evaluation order
22 --> eval_order_dependence.rs:11:12
24 11 | x += { x = 20; 2 };
27 error: unsequenced read of a variable
28 --> eval_order_dependence.rs:17:24
30 17 | let foo = Foo { a: x, .. { x = 6; base } };
33 = note: `-D eval-order-dependence` implied by `-D warnings`
34 note: whether read occurs before this write depends on evaluation order
35 --> eval_order_dependence.rs:17:32
37 17 | let foo = Foo { a: x, .. { x = 6; base } };
40 error: unsequenced read of a variable
41 --> eval_order_dependence.rs:21:9
43 21 | x += { x = 20; 2 };
46 = note: `-D eval-order-dependence` implied by `-D warnings`
47 note: whether read occurs before this write depends on evaluation order
48 --> eval_order_dependence.rs:21:16
50 21 | x += { x = 20; 2 };
53 error: aborting due to previous error(s)
55 error: Could not compile `clippy_tests`.
57 To learn more, run the command again with --verbose.