about summary refs log tree commit diff
path: root/tests/ui/async-await/async-closures/post-mono-higher-ranked-hang-2.stderr
blob: 64f4665225ffe18d5b3ab7cf7f2af4591af33e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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