]> git.proxmox.com Git - rustc.git/blame - src/test/ui/enum/issue-67945-2.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / enum / issue-67945-2.stderr
CommitLineData
5869c6ff
XL
1error: generic parameters may not be used in const operations
2 --> $DIR/issue-67945-2.rs:4:14
f9f354fc 3 |
f9f354fc 4LL | 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
10error[E0392]: parameter `S` is never used
11 --> $DIR/issue-67945-2.rs:3:10
f9f354fc
XL
12 |
13LL | 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
18error: aborting due to 2 previous errors
19
5869c6ff 20For more information about this error, try `rustc --explain E0392`.