|
1 |
| -error: `->` used for field access or method call |
2 |
| - --> $DIR/expr-rarrow-call.rs:14:10 |
| 1 | +error: `->` is not valid for field access or method call |
| 2 | + --> $DIR/expr-rarrow-call.rs:13:10 |
3 | 3 | |
|
4 | 4 | LL | named->foo;
|
5 | 5 | | ^^
|
6 | 6 | |
|
7 |
| - = help: the `.` operator will dereference the value if needed |
8 |
| -help: try using `.` instead |
9 |
| - | |
10 |
| -LL - named->foo; |
11 |
| -LL + named.foo; |
12 |
| - | |
| 7 | + = help: the `.` operator will automatically dereference the value, except if the value is a raw pointer |
13 | 8 |
|
14 |
| -error: `->` used for field access or method call |
15 |
| - --> $DIR/expr-rarrow-call.rs:18:12 |
| 9 | +error: `->` is not valid for field access or method call |
| 10 | + --> $DIR/expr-rarrow-call.rs:17:12 |
16 | 11 | |
|
17 | 12 | LL | unnamed->0;
|
18 | 13 | | ^^
|
19 | 14 | |
|
20 |
| - = help: the `.` operator will dereference the value if needed |
21 |
| -help: try using `.` instead |
22 |
| - | |
23 |
| -LL - unnamed->0; |
24 |
| -LL + unnamed.0; |
25 |
| - | |
| 15 | + = help: the `.` operator will automatically dereference the value, except if the value is a raw pointer |
26 | 16 |
|
27 |
| -error: `->` used for field access or method call |
28 |
| - --> $DIR/expr-rarrow-call.rs:22:6 |
| 17 | +error: `->` is not valid for field access or method call |
| 18 | + --> $DIR/expr-rarrow-call.rs:21:6 |
29 | 19 | |
|
30 | 20 | LL | t->0;
|
31 | 21 | | ^^
|
32 | 22 | |
|
33 |
| - = help: the `.` operator will dereference the value if needed |
34 |
| -help: try using `.` instead |
35 |
| - | |
36 |
| -LL - t->0; |
37 |
| -LL + t.0; |
38 |
| - | |
| 23 | + = help: the `.` operator will automatically dereference the value, except if the value is a raw pointer |
39 | 24 |
|
40 |
| -error: `->` used for field access or method call |
41 |
| - --> $DIR/expr-rarrow-call.rs:23:6 |
| 25 | +error: `->` is not valid for field access or method call |
| 26 | + --> $DIR/expr-rarrow-call.rs:22:6 |
42 | 27 | |
|
43 | 28 | LL | t->1;
|
44 | 29 | | ^^
|
45 | 30 | |
|
46 |
| - = help: the `.` operator will dereference the value if needed |
47 |
| -help: try using `.` instead |
48 |
| - | |
49 |
| -LL - t->1; |
50 |
| -LL + t.1; |
51 |
| - | |
| 31 | + = help: the `.` operator will automatically dereference the value, except if the value is a raw pointer |
52 | 32 |
|
53 |
| -error: `->` used for field access or method call |
54 |
| - --> $DIR/expr-rarrow-call.rs:30:8 |
| 33 | +error: `->` is not valid for field access or method call |
| 34 | + --> $DIR/expr-rarrow-call.rs:29:8 |
55 | 35 | |
|
56 | 36 | LL | foo->clone();
|
57 | 37 | | ^^
|
58 | 38 | |
|
59 |
| - = help: the `.` operator will dereference the value if needed |
60 |
| -help: try using `.` instead |
61 |
| - | |
62 |
| -LL - foo->clone(); |
63 |
| -LL + foo.clone(); |
64 |
| - | |
| 39 | + = help: the `.` operator will automatically dereference the value, except if the value is a raw pointer |
65 | 40 |
|
66 | 41 | error: aborting due to 5 previous errors
|
67 | 42 |
|
0 commit comments