@@ -4,39 +4,39 @@ error: `->` used for field access or method call
4
4
LL | named->foo;
5
5
| ^^ help: try using `.` instead
6
6
|
7
- = help: Rust uses `.` to access fields and methods
7
+ = help: The `.` operator dereferences the value if needed
8
8
9
9
error: `->` used for field access or method call
10
10
--> $DIR/expr-rarrow-call.rs:18:12
11
11
|
12
12
LL | unnamed->0;
13
13
| ^^ help: try using `.` instead
14
14
|
15
- = help: Rust uses `.` to access fields and methods
15
+ = help: The `.` operator dereferences the value if needed
16
16
17
17
error: `->` used for field access or method call
18
18
--> $DIR/expr-rarrow-call.rs:22:6
19
19
|
20
20
LL | t->0;
21
21
| ^^ help: try using `.` instead
22
22
|
23
- = help: Rust uses `.` to access fields and methods
23
+ = help: The `.` operator dereferences the value if needed
24
24
25
25
error: `->` used for field access or method call
26
26
--> $DIR/expr-rarrow-call.rs:23:6
27
27
|
28
28
LL | t->1;
29
29
| ^^ help: try using `.` instead
30
30
|
31
- = help: Rust uses `.` to access fields and methods
31
+ = help: The `.` operator dereferences the value if needed
32
32
33
33
error: `->` used for field access or method call
34
34
--> $DIR/expr-rarrow-call.rs:30:8
35
35
|
36
36
LL | foo->clone();
37
37
| ^^ help: try using `.` instead
38
38
|
39
- = help: Rust uses `.` to access fields and methods
39
+ = help: The `.` operator dereferences the value if needed
40
40
41
41
error: aborting due to 5 previous errors
42
42
0 commit comments