]> git.proxmox.com Git - rustc.git/blame - src/test/ui/polymorphization/generators.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / polymorphization / generators.stderr
CommitLineData
3dfed10e
XL
1warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/generators.rs:3:12
3 |
4LL | #![feature(const_generics, generators, generator_trait, rustc_attrs)]
5 | ^^^^^^^^^^^^^^
6 |
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
29967ef6 9 = help: consider using `min_const_generics` instead, which is more stable and complete
3dfed10e
XL
10
11error: item has unused generic parameters
12 --> $DIR/generators.rs:36:5
13 |
14LL | pub fn unused_type<T>() -> impl Generator<(), Yield = u32, Return = u32> + Unpin {
15 | - generic parameter `T` is unused
16LL |
17LL | / || {
18LL | |
19LL | | yield 1;
20LL | | 2
21LL | | }
22 | |_____^
23
24error: item has unused generic parameters
25 --> $DIR/generators.rs:34:8
26 |
27LL | pub fn unused_type<T>() -> impl Generator<(), Yield = u32, Return = u32> + Unpin {
28 | ^^^^^^^^^^^ - generic parameter `T` is unused
29
30error: item has unused generic parameters
31 --> $DIR/generators.rs:62:5
32 |
33LL | pub fn unused_const<const T: u32>() -> impl Generator<(), Yield = u32, Return = u32> + Unpin {
34 | - generic parameter `T` is unused
35LL |
36LL | / || {
37LL | |
38LL | | yield 1;
39LL | | 2
40LL | | }
41 | |_____^
42
43error: item has unused generic parameters
44 --> $DIR/generators.rs:60:8
45 |
46LL | pub fn unused_const<const T: u32>() -> impl Generator<(), Yield = u32, Return = u32> + Unpin {
47 | ^^^^^^^^^^^^ - generic parameter `T` is unused
48
49error: aborting due to 4 previous errors; 1 warning emitted
50