File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1420,8 +1420,8 @@ fn check_opaque_for_cycles<'tcx>(
1420
1420
tcx. sess, span, E0733 ,
1421
1421
"recursion in an `async fn` requires boxing" ,
1422
1422
)
1423
- . span_label ( span, "an `async fn` cannot invoke itself directly " )
1424
- . note ( "a recursive `async fn` must be rewritten to return a boxed future ." )
1423
+ . span_label ( span, "recursive `async fn`" )
1424
+ . note ( "a recursive `async fn` must be rewritten to return a boxed `dyn Future` ." )
1425
1425
. emit ( ) ;
1426
1426
} else {
1427
1427
let mut err = struct_span_err ! (
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ error[E0733]: recursion in an `async fn` requires boxing
2
2
--> $DIR/recursive-async-impl-trait-type.rs:5:40
3
3
|
4
4
LL | async fn recursive_async_function() -> () {
5
- | ^^ an `async fn` cannot invoke itself directly
5
+ | ^^ recursive `async fn`
6
6
|
7
- = note: a recursive `async fn` must be rewritten to return a boxed future .
7
+ = note: a recursive `async fn` must be rewritten to return a boxed `dyn Future` .
8
8
9
9
error: aborting due to previous error
10
10
You can’t perform that action at this time.
0 commit comments