blob: 90f10b05d2afc50c5265404d1f4cc0a0a4d4dc59 [file] [log] [blame]
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