]>
Commit | Line | Data |
---|---|---|
5869c6ff XL |
1 | error: generic parameters may not be used in const operations |
2 | --> $DIR/issue-67945-2.rs:4:14 | |
f9f354fc | 3 | | |
f9f354fc | 4 | LL | Var = 0: S, |
5869c6ff | 5 | | ^ cannot perform const operation using `S` |
f9f354fc | 6 | | |
5869c6ff XL |
7 | = note: type parameters may not be used in const expressions |
8 | = help: use `#![feature(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions | |
f9f354fc | 9 | |
5869c6ff XL |
10 | error[E0392]: parameter `S` is never used |
11 | --> $DIR/issue-67945-2.rs:3:10 | |
f9f354fc XL |
12 | | |
13 | LL | enum Bug<S> { | |
5869c6ff | 14 | | ^ unused parameter |
f9f354fc | 15 | | |
5869c6ff | 16 | = help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData` |
f9f354fc XL |
17 | |
18 | error: aborting due to 2 previous errors | |
19 | ||
5869c6ff | 20 | For more information about this error, try `rustc --explain E0392`. |