@@ -4,7 +4,7 @@ error: `->` used for field access or method call
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;
@@ -17,7 +17,7 @@ error: `->` used for field access or method call
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;
@@ -30,7 +30,7 @@ error: `->` used for field access or method call
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;
@@ -43,7 +43,7 @@ error: `->` used for field access or method call
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;
@@ -56,7 +56,7 @@ error: `->` used for field access or method call
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