2025-04-16 13:16:04 +00:00
|
|
|
error: `->` is not valid syntax for field accesses and method calls
|
2024-04-20 13:52:22 +00:00
|
|
|
--> $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
|
|
|
|
|
2025-04-16 13:16:04 +00:00
|
|
|
= help: the `.` operator will automatically dereference the value, except if the value is a raw pointer
|
2024-07-06 03:07:46 +00:00
|
|
|
help: try using `.` instead
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - named->foo;
|
|
|
|
LL + named.foo;
|
|
|
|
|
|
2024-04-20 13:52:22 +00:00
|
|
|
|
2025-04-16 13:16:04 +00:00
|
|
|
error: `->` is not valid syntax for field accesses and method calls
|
2024-04-20 13:52:22 +00:00
|
|
|
--> $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
|
|
|
|
|
2025-04-16 13:16:04 +00:00
|
|
|
= help: the `.` operator will automatically dereference the value, except if the value is a raw pointer
|
2024-07-06 03:07:46 +00:00
|
|
|
help: try using `.` instead
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - unnamed->0;
|
|
|
|
LL + unnamed.0;
|
|
|
|
|
|
2024-04-20 13:52:22 +00:00
|
|
|
|
2025-04-16 13:16:04 +00:00
|
|
|
error: `->` is not valid syntax for field accesses and method calls
|
2024-04-20 13:52:22 +00:00
|
|
|
--> $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
|
|
|
|
|
2025-04-16 13:16:04 +00:00
|
|
|
= help: the `.` operator will automatically dereference the value, except if the value is a raw pointer
|
2024-07-06 03:07:46 +00:00
|
|
|
help: try using `.` instead
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - t->0;
|
|
|
|
LL + t.0;
|
|
|
|
|
|
2024-04-20 13:52:22 +00:00
|
|
|
|
2025-04-16 13:16:04 +00:00
|
|
|
error: `->` is not valid syntax for field accesses and method calls
|
2024-04-20 13:52:22 +00:00
|
|
|
--> $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
|
|
|
|
|
2025-04-16 13:16:04 +00:00
|
|
|
= help: the `.` operator will automatically dereference the value, except if the value is a raw pointer
|
2024-07-06 03:07:46 +00:00
|
|
|
help: try using `.` instead
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - t->1;
|
|
|
|
LL + t.1;
|
|
|
|
|
|
2024-04-20 13:52:22 +00:00
|
|
|
|
2025-04-16 13:16:04 +00:00
|
|
|
error: `->` is not valid syntax for field accesses and method calls
|
2024-04-20 13:52:22 +00:00
|
|
|
--> $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
|
|
|
|
|
2025-04-16 13:16:04 +00:00
|
|
|
= help: the `.` operator will automatically dereference the value, except if the value is a raw pointer
|
2024-07-06 03:07:46 +00:00
|
|
|
help: try using `.` instead
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - foo->clone();
|
|
|
|
LL + foo.clone();
|
|
|
|
|
|
2024-04-20 13:52:22 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|