]> git.lizzy.rs Git - rust.git/blob - src/test/ui/impl-trait/recursive-async-impl-trait-type.stderr
Rollup merge of #58802 - nnethercote:inline-record_layout, r=oli-obk
[rust.git] / src / test / ui / impl-trait / recursive-async-impl-trait-type.stderr
1 error[E0720]: opaque type expands to a recursive type
2   --> $DIR/recursive-async-impl-trait-type.rs:7:40
3    |
4 LL | async fn recursive_async_function() -> () { //~ ERROR
5    |                                        ^^ expands to self-referential type
6    |
7    = note: expanded type is `std::future::GenFuture<[static generator@$DIR/recursive-async-impl-trait-type.rs:7:43: 9:2 {impl std::future::Future, ()}]>`
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0720`.