blob: 9a5da28b559e39cc6e17c12240a80e7107da3ee7 (
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
|
error: tail calls can only be performed with function definitions or pointers
--> $DIR/callee_is_weird.rs:7:12
|
LL | become std::sync::Exclusive::new(f)()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: callee has type `Exclusive<fn() {f}>`
error: tail calls can only be performed with function definitions or pointers
--> $DIR/callee_is_weird.rs:11:12
|
LL | become (&mut &std::sync::Exclusive::new(f))()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: callee has type `&Exclusive<fn() {f}>`
error: tail calls can only be performed with function definitions or pointers
--> $DIR/callee_is_weird.rs:22:12
|
LL | become J();
| ^^^
|
= note: callee has type `J`
error: aborting due to 3 previous errors
|