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