]>
Commit | Line | Data |
---|---|---|
3dfed10e XL |
1 | warning: 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 | | | |
4 | LL | #![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 | |
9 | ||
10 | error: item has unused generic parameters | |
11 | --> $DIR/generators.rs:36: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 | LL | / || { | |
17 | LL | | | |
18 | LL | | yield 1; | |
19 | LL | | 2 | |
20 | LL | | } | |
21 | | |_____^ | |
22 | ||
23 | error: item has unused generic parameters | |
24 | --> $DIR/generators.rs:34:8 | |
25 | | | |
26 | LL | pub fn unused_type<T>() -> impl Generator<(), Yield = u32, Return = u32> + Unpin { | |
27 | | ^^^^^^^^^^^ - generic parameter `T` is unused | |
28 | ||
29 | error: item has unused generic parameters | |
30 | --> $DIR/generators.rs:62:5 | |
31 | | | |
32 | LL | pub fn unused_const<const T: u32>() -> impl Generator<(), Yield = u32, Return = u32> + Unpin { | |
33 | | - generic parameter `T` is unused | |
34 | LL | | |
35 | LL | / || { | |
36 | LL | | | |
37 | LL | | yield 1; | |
38 | LL | | 2 | |
39 | LL | | } | |
40 | | |_____^ | |
41 | ||
42 | error: item has unused generic parameters | |
43 | --> $DIR/generators.rs:60:8 | |
44 | | | |
45 | LL | pub fn unused_const<const T: u32>() -> impl Generator<(), Yield = u32, Return = u32> + Unpin { | |
46 | | ^^^^^^^^^^^^ - generic parameter `T` is unused | |
47 | ||
48 | error: aborting due to 4 previous errors; 1 warning emitted | |
49 |