]> git.proxmox.com Git - rustc.git/blob - src/test/ui/enum/issue-67945-1.stderr
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / ui / enum / issue-67945-1.stderr
1 error: generic parameters may not be used in const operations
2 --> $DIR/issue-67945-1.rs:3:16
3 |
4 LL | let x: S = 0;
5 | ^ cannot perform const operation using `S`
6 |
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
9
10 error[E0392]: parameter `S` is never used
11 --> $DIR/issue-67945-1.rs:1:10
12 |
13 LL | enum Bug<S> {
14 | ^ unused parameter
15 |
16 = help: consider removing `S`, referring to it in a field, or using a marker such as `PhantomData`
17 = help: if you intended `S` to be a const parameter, use `const S: usize` instead
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0392`.