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