1 error[E0271]: type mismatch resolving `<[generator@$DIR/generator-yielding-or-returning-itself.rs:25:34: 29:6 _] as std::ops::Generator>::Return == [generator@$DIR/generator-yielding-or-returning-itself.rs:25:34: 29:6 _]`
2 --> $DIR/generator-yielding-or-returning-itself.rs:25:5
4 LL | want_cyclic_generator_return(|| {
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cyclic type of infinite size
7 = note: closures cannot capture themselves or take themselves as argument;
8 this error may be the result of a recent compiler bug-fix,
9 see https://github.com/rust-lang/rust/issues/46062 for more details
10 note: required by `want_cyclic_generator_return`
11 --> $DIR/generator-yielding-or-returning-itself.rs:19:1
13 LL | / pub fn want_cyclic_generator_return<T>(_: T)
14 LL | | where T: Generator<Yield = (), Return = T>
19 error[E0271]: type mismatch resolving `<[generator@$DIR/generator-yielding-or-returning-itself.rs:38:33: 42:6 _] as std::ops::Generator>::Yield == [generator@$DIR/generator-yielding-or-returning-itself.rs:38:33: 42:6 _]`
20 --> $DIR/generator-yielding-or-returning-itself.rs:38:5
22 LL | want_cyclic_generator_yield(|| {
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cyclic type of infinite size
25 = note: closures cannot capture themselves or take themselves as argument;
26 this error may be the result of a recent compiler bug-fix,
27 see https://github.com/rust-lang/rust/issues/46062 for more details
28 note: required by `want_cyclic_generator_yield`
29 --> $DIR/generator-yielding-or-returning-itself.rs:32:1
31 LL | / pub fn want_cyclic_generator_yield<T>(_: T)
32 LL | | where T: Generator<Yield = T, Return = ()>
37 error: aborting due to 2 previous errors
39 For more information about this error, try `rustc --explain E0271`.