about summary refs log tree commit diff
path: root/tests/ui/async-await/in-trait/async-recursive-generic.stderr
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-10-02 21:31:46 +0000
committerMichael Goulet <michael@errs.io>2023-10-03 02:25:32 +0000
commit2934fe07b7fd60760e0e9e7d509601b893d7b3fd (patch)
treeb88babc5a8361f65b76c865fae51d8b8c19b3ff2 /tests/ui/async-await/in-trait/async-recursive-generic.stderr
parent2e5a9dd6c9eaa42f0684b4b760bd68fc27cbe51b (diff)
downloadrust-2934fe07b7fd60760e0e9e7d509601b893d7b3fd.tar.gz
rust-2934fe07b7fd60760e0e9e7d509601b893d7b3fd.zip
Point to full async fn for future
Diffstat (limited to 'tests/ui/async-await/in-trait/async-recursive-generic.stderr')
-rw-r--r--tests/ui/async-await/in-trait/async-recursive-generic.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/async-await/in-trait/async-recursive-generic.stderr b/tests/ui/async-await/in-trait/async-recursive-generic.stderr
index cab173bdd5b..6897bf1c999 100644
--- a/tests/ui/async-await/in-trait/async-recursive-generic.stderr
+++ b/tests/ui/async-await/in-trait/async-recursive-generic.stderr
@@ -1,8 +1,8 @@
 error[E0733]: recursion in an `async fn` requires boxing
-  --> $DIR/async-recursive-generic.rs:11:48
+  --> $DIR/async-recursive-generic.rs:11:5
    |
 LL |     async fn foo_recursive(&self, n: usize) -> T {
-   |                                                ^ recursive `async fn`
+   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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