2024-04-20 13:52:22 +00:00
|
|
|
error: `->` used for field access or method call
|
|
|
|
--> $DIR/expr-rarrow-call.rs:14:10
|
|
|
|
|
|
|
|
|
LL | named->foo;
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^
|
2024-04-20 13:52:22 +00:00
|
|
|
|
|
|
|
|
= help: the `.` operator will dereference the value if needed
|
2024-07-06 03:07:46 +00:00
|
|
|
help: try using `.` instead
|
|
|
|
|
|
|
|
|
LL | named.foo;
|
|
|
|
| ~
|
2024-04-20 13:52:22 +00:00
|
|
|
|
|
|
|
error: `->` used for field access or method call
|
|
|
|
--> $DIR/expr-rarrow-call.rs:18:12
|
|
|
|
|
|
|
|
|
LL | unnamed->0;
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^
|
2024-04-20 13:52:22 +00:00
|
|
|
|
|
|
|
|
= help: the `.` operator will dereference the value if needed
|
2024-07-06 03:07:46 +00:00
|
|
|
help: try using `.` instead
|
|
|
|
|
|
|
|
|
LL | unnamed.0;
|
|
|
|
| ~
|
2024-04-20 13:52:22 +00:00
|
|
|
|
|
|
|
error: `->` used for field access or method call
|
|
|
|
--> $DIR/expr-rarrow-call.rs:22:6
|
|
|
|
|
|
|
|
|
LL | t->0;
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^
|
2024-04-20 13:52:22 +00:00
|
|
|
|
|
|
|
|
= help: the `.` operator will dereference the value if needed
|
2024-07-06 03:07:46 +00:00
|
|
|
help: try using `.` instead
|
|
|
|
|
|
|
|
|
LL | t.0;
|
|
|
|
| ~
|
2024-04-20 13:52:22 +00:00
|
|
|
|
|
|
|
error: `->` used for field access or method call
|
|
|
|
--> $DIR/expr-rarrow-call.rs:23:6
|
|
|
|
|
|
|
|
|
LL | t->1;
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^
|
2024-04-20 13:52:22 +00:00
|
|
|
|
|
|
|
|
= help: the `.` operator will dereference the value if needed
|
2024-07-06 03:07:46 +00:00
|
|
|
help: try using `.` instead
|
|
|
|
|
|
|
|
|
LL | t.1;
|
|
|
|
| ~
|
2024-04-20 13:52:22 +00:00
|
|
|
|
|
|
|
error: `->` used for field access or method call
|
|
|
|
--> $DIR/expr-rarrow-call.rs:30:8
|
|
|
|
|
|
|
|
|
LL | foo->clone();
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^
|
2024-04-20 13:52:22 +00:00
|
|
|
|
|
|
|
|
= help: the `.` operator will dereference the value if needed
|
2024-07-06 03:07:46 +00:00
|
|
|
help: try using `.` instead
|
|
|
|
|
|
|
|
|
LL | foo.clone();
|
|
|
|
| ~
|
2024-04-20 13:52:22 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|