mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
19 lines
647 B
Plaintext
19 lines
647 B
Plaintext
![]() |
error: reached the recursion limit while instantiating `recur::<{async closure@$DIR/post-mono-higher-ranked-hang-2.rs:13:24: 13:32}>`
|
||
|
--> $DIR/post-mono-higher-ranked-hang-2.rs:13:17
|
||
|
|
|
||
|
LL | let _ = recur(&async || {
|
||
|
| _________________^
|
||
|
LL | |
|
||
|
LL | | let _ = closure();
|
||
|
LL | | });
|
||
|
| |__________^
|
||
|
|
|
||
|
note: `recur` defined here
|
||
|
--> $DIR/post-mono-higher-ranked-hang-2.rs:10:1
|
||
|
|
|
||
|
LL | fn recur<'l>(closure: &'l impl AsyncFn()) -> Pin<Box<dyn Future<Output = ()> + 'l>> {
|
||
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||
|
|
||
|
error: aborting due to 1 previous error
|
||
|
|