]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/mixed_read_write_in_expression.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / mixed_read_write_in_expression.stderr
1 error: unsequenced read of `x`
2 --> $DIR/mixed_read_write_in_expression.rs:14:9
3 |
4 LL | } + x;
5 | ^
6 |
7 = note: `-D clippy::mixed-read-write-in-expression` implied by `-D warnings`
8 note: whether read occurs before this write depends on evaluation order
9 --> $DIR/mixed_read_write_in_expression.rs:12:9
10 |
11 LL | x = 1;
12 | ^^^^^
13
14 error: unsequenced read of `x`
15 --> $DIR/mixed_read_write_in_expression.rs:17:5
16 |
17 LL | x += {
18 | ^
19 |
20 note: whether read occurs before this write depends on evaluation order
21 --> $DIR/mixed_read_write_in_expression.rs:18:9
22 |
23 LL | x = 20;
24 | ^^^^^^
25
26 error: unsequenced read of `x`
27 --> $DIR/mixed_read_write_in_expression.rs:30:12
28 |
29 LL | a: x,
30 | ^
31 |
32 note: whether read occurs before this write depends on evaluation order
33 --> $DIR/mixed_read_write_in_expression.rs:32:13
34 |
35 LL | x = 6;
36 | ^^^^^
37
38 error: unsequenced read of `x`
39 --> $DIR/mixed_read_write_in_expression.rs:39:9
40 |
41 LL | x += {
42 | ^
43 |
44 note: whether read occurs before this write depends on evaluation order
45 --> $DIR/mixed_read_write_in_expression.rs:40:13
46 |
47 LL | x = 20;
48 | ^^^^^^
49
50 error: aborting due to 4 previous errors
51