]> git.proxmox.com Git - rustc.git/blob - src/test/ui/polymorphization/generators.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / polymorphization / generators.stderr
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
3 |
4 LL | #![feature(generic_const_exprs, generators, generator_trait, rustc_attrs)]
5 | ^^^^^^^^^^^^^^^^^^^
6 |
7 = note: see issue #76560 <https://github.com/rust-lang/rust/issues/76560> for more information
8 = note: `#[warn(incomplete_features)]` on by default
9
10 error: item has unused generic parameters
11 --> $DIR/generators.rs:35:5
12 |
13 LL | pub fn unused_type<T>() -> impl Generator<(), Yield = u32, Return = u32> + Unpin {
14 | - generic parameter `T` is unused
15 LL | || {
16 | ^^
17
18 note: the above error was encountered while instantiating `fn finish::<[generator@$DIR/generators.rs:35:5: 35:7], u32, u32>`
19 --> $DIR/generators.rs:86:5
20 |
21 LL | finish(unused_type::<u32>());
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23
24 error: item has unused generic parameters
25 --> $DIR/generators.rs:60:5
26 |
27 LL | pub fn unused_const<const T: u32>() -> impl Generator<(), Yield = u32, Return = u32> + Unpin {
28 | ------------ generic parameter `T` is unused
29 LL | || {
30 | ^^
31
32 note: the above error was encountered while instantiating `fn finish::<[generator@$DIR/generators.rs:60:5: 60:7], u32, u32>`
33 --> $DIR/generators.rs:89:5
34 |
35 LL | finish(unused_const::<1u32>());
36 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37
38 error: aborting due to 2 previous errors; 1 warning emitted
39