]> git.lizzy.rs Git - rust.git/blob - tests/ui/impl-trait/recursive-generator.stderr
Rollup merge of #107022 - scottmcm:ordering-option-eq, r=m-ou-se
[rust.git] / tests / ui / impl-trait / recursive-generator.stderr
1 error[E0720]: cannot resolve opaque type
2   --> $DIR/recursive-generator.rs:5:13
3    |
4 LL |   fn foo() -> impl Generator<Yield = (), Return = ()> {
5    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ recursive opaque type
6 ...
7 LL | /     || {
8 LL | |
9 LL | |         let mut gen = Box::pin(foo());
10    | |             ------- generator captures itself here
11 LL | |
12 ...  |
13 LL | |         }
14 LL | |     }
15    | |_____- returning here with type `[generator@$DIR/recursive-generator.rs:9:5: 9:7]`
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0720`.