rust/tests/ui/explicit-tail-calls/become-uncallable.stderr

45 lines
968 B
Plaintext

error: `become` requires a function call
--> $DIR/become-uncallable.rs:7:12
|
LL | become 1;
| -------^
| |
| help: try using `return` instead: `return`
|
note: not a function call
--> $DIR/become-uncallable.rs:7:12
|
LL | become 1;
| ^
error: `become` requires a function call
--> $DIR/become-uncallable.rs:11:12
|
LL | become { h() };
| -------^^^^^^^
| |
| help: try using `return` instead: `return`
|
note: not a function call
--> $DIR/become-uncallable.rs:11:12
|
LL | become { h() };
| ^^^^^^^
error: `become` requires a function call
--> $DIR/become-uncallable.rs:15:12
|
LL | become *&g();
| -------^^^^^
| |
| help: try using `return` instead: `return`
|
note: not a function call
--> $DIR/become-uncallable.rs:15:12
|
LL | become *&g();
| ^^^^^
error: aborting due to 3 previous errors