summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/mixed_read_write_in_expression.stderr
blob: 3dad98815c618ffbe9226ea99cf1a296d8ea31a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
error: unsequenced read of `x`
  --> $DIR/mixed_read_write_in_expression.rs:14:9
   |
LL |     } + x;
   |         ^
   |
note: whether read occurs before this write depends on evaluation order
  --> $DIR/mixed_read_write_in_expression.rs:12:9
   |
LL |         x = 1;
   |         ^^^^^
   = note: `-D clippy::mixed-read-write-in-expression` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::mixed_read_write_in_expression)]`

error: unsequenced read of `x`
  --> $DIR/mixed_read_write_in_expression.rs:18:5
   |
LL |     x += {
   |     ^
   |
note: whether read occurs before this write depends on evaluation order
  --> $DIR/mixed_read_write_in_expression.rs:20:9
   |
LL |         x = 20;
   |         ^^^^^^

error: unsequenced read of `x`
  --> $DIR/mixed_read_write_in_expression.rs:32:12
   |
LL |         a: x,
   |            ^
   |
note: whether read occurs before this write depends on evaluation order
  --> $DIR/mixed_read_write_in_expression.rs:35:13
   |
LL |             x = 6;
   |             ^^^^^

error: unsequenced read of `x`
  --> $DIR/mixed_read_write_in_expression.rs:42:9
   |
LL |         x += {
   |         ^
   |
note: whether read occurs before this write depends on evaluation order
  --> $DIR/mixed_read_write_in_expression.rs:44:13
   |
LL |             x = 20;
   |             ^^^^^^

error: aborting due to 4 previous errors