1 warning: the feature `generic_const_exprs` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/generators.rs:3:12
4 LL | #![feature(generic_const_exprs, generators, generator_trait, rustc_attrs)]
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
10 error: item has unused generic parameters
11 --> $DIR/generators.rs:35:5
13 LL | pub fn unused_type<T>() -> impl Generator<(), Yield = u32, Return = u32> + Unpin {
14 | - generic parameter `T` is unused
22 note: the above error was encountered while instantiating `fn finish::<[generator@$DIR/generators.rs:35:5: 39:6], u32, u32>`
23 --> $DIR/generators.rs:86:5
25 LL | finish(unused_type::<u32>());
26 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28 error: item has unused generic parameters
29 --> $DIR/generators.rs:60:5
31 LL | pub fn unused_const<const T: u32>() -> impl Generator<(), Yield = u32, Return = u32> + Unpin {
32 | ------------ generic parameter `T` is unused
40 note: the above error was encountered while instantiating `fn finish::<[generator@$DIR/generators.rs:60:5: 64:6], u32, u32>`
41 --> $DIR/generators.rs:89:5
43 LL | finish(unused_const::<1u32>());
44 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46 error: aborting due to 2 previous errors; 1 warning emitted