]> git.lizzy.rs Git - rust.git/blob - tests/ui/eval_order_dependence.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / eval_order_dependence.stderr
1 error: unsequenced read of a variable
2  --> $DIR/eval_order_dependence.rs:8:28
3   |
4 8 |     let a = { x = 1; 1 } + x;
5   |                            ^
6   |
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
10   |
11 8 |     let a = { x = 1; 1 } + x;
12   |               ^^^^^
13
14 error: unsequenced read of a variable
15   --> $DIR/eval_order_dependence.rs:11:5
16    |
17 11 |     x += { x = 20; 2 };
18    |     ^
19    |
20 note: whether read occurs before this write depends on evaluation order
21   --> $DIR/eval_order_dependence.rs:11:12
22    |
23 11 |     x += { x = 20; 2 };
24    |            ^^^^^^
25
26 error: unsequenced read of a variable
27   --> $DIR/eval_order_dependence.rs:17:24
28    |
29 17 |     let foo = Foo { a: x, .. { x = 6; base } };
30    |                        ^
31    |
32 note: whether read occurs before this write depends on evaluation order
33   --> $DIR/eval_order_dependence.rs:17:32
34    |
35 17 |     let foo = Foo { a: x, .. { x = 6; base } };
36    |                                ^^^^^
37
38 error: unsequenced read of a variable
39   --> $DIR/eval_order_dependence.rs:21:9
40    |
41 21 |         x += { x = 20; 2 };
42    |         ^
43    |
44 note: whether read occurs before this write depends on evaluation order
45   --> $DIR/eval_order_dependence.rs:21:16
46    |
47 21 |         x += { x = 20; 2 };
48    |                ^^^^^^
49
50 error: aborting due to 4 previous errors
51