blob: 90f10b05d2afc50c5265404d1f4cc0a0a4d4dc59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
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
|