about summary refs log tree commit diff
path: root/tests/ui/explicit-tail-calls/caller-lifetime-presence.stderr
blob: 2fb981d968206c8e27e402423d428d3b3c707a19 (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
error: mismatched signatures
  --> $DIR/caller-lifetime-presence.rs:16:5
   |
LL |     become bar(dummy);
   |     ^^^^^^^^^^^^^^^^^
   |
   = note: `become` requires caller and callee to have matching signatures
   = note: caller signature: `fn(fn(&'a ()))`
   = note: callee signature: `fn(for<'a> fn(&'a ()))`

error: mismatched signatures
  --> $DIR/caller-lifetime-presence.rs:28:5
   |
LL |     become bar1(dummy2);
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = note: `become` requires caller and callee to have matching signatures
   = note: caller signature: `fn(for<'a> fn(&'a ()))`
   = note: callee signature: `fn(fn(&'a ()))`

error: mismatched signatures
  --> $DIR/caller-lifetime-presence.rs:40:5
   |
LL |     become bar(dummy3);
   |     ^^^^^^^^^^^^^^^^^^
   |
   = note: `become` requires caller and callee to have matching signatures
   = note: caller signature: `fn(fn(&'static ()))`
   = note: callee signature: `fn(for<'a> fn(&'a ()))`

error: aborting due to 3 previous errors