diff options
Diffstat (limited to 'tests/ui/async-await/recursive-async-impl-trait-type.stderr')
-rw-r--r-- | tests/ui/async-await/recursive-async-impl-trait-type.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/async-await/recursive-async-impl-trait-type.stderr b/tests/ui/async-await/recursive-async-impl-trait-type.stderr new file mode 100644 index 000000000..63f64f445 --- /dev/null +++ b/tests/ui/async-await/recursive-async-impl-trait-type.stderr @@ -0,0 +1,12 @@ +error[E0733]: recursion in an `async fn` requires boxing + --> $DIR/recursive-async-impl-trait-type.rs:5:40 + | +LL | async fn recursive_async_function() -> () { + | ^^ recursive `async fn` + | + = note: a recursive `async fn` must be rewritten to return a boxed `dyn Future` + = note: consider using the `async_recursion` crate: https://crates.io/crates/async_recursion + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0733`. |