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