@@ -4,7 +4,7 @@ error: `->` used for field access or method call
44LL | named->foo;
55 | ^^
66 |
7- = help: the `.` operator will dereference the value if needed
7+ = help: the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
88help: try using `.` instead
99 |
1010LL - named->foo;
@@ -17,7 +17,7 @@ error: `->` used for field access or method call
1717LL | unnamed->0;
1818 | ^^
1919 |
20- = help: the `.` operator will dereference the value if needed
20+ = help: the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
2121help: try using `.` instead
2222 |
2323LL - unnamed->0;
@@ -30,7 +30,7 @@ error: `->` used for field access or method call
3030LL | t->0;
3131 | ^^
3232 |
33- = help: the `.` operator will dereference the value if needed
33+ = help: the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
3434help: try using `.` instead
3535 |
3636LL - t->0;
@@ -43,7 +43,7 @@ error: `->` used for field access or method call
4343LL | t->1;
4444 | ^^
4545 |
46- = help: the `.` operator will dereference the value if needed
46+ = help: the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
4747help: try using `.` instead
4848 |
4949LL - t->1;
@@ -56,7 +56,7 @@ error: `->` used for field access or method call
5656LL | foo->clone();
5757 | ^^
5858 |
59- = help: the `.` operator will dereference the value if needed
59+ = help: the `.` operator will dereference the value if needed (if value is raw pointer you have to derefernce it by yourself)
6060help: try using `.` instead
6161 |
6262LL - foo->clone();
0 commit comments