]> git.proxmox.com Git - rustc.git/blame - src/test/ui/enum-discriminant/feature-gate-arbitrary_enum_discriminant.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / enum-discriminant / feature-gate-arbitrary_enum_discriminant.stderr
CommitLineData
dc3f5686
XL
1error[E0658]: discriminants on non-unit variants are experimental
2 --> $DIR/feature-gate-arbitrary_enum_discriminant.rs:6:13
3 |
4LL | Tuple() = 2,
5 | ^
6 |
7 = note: see issue #60553 <https://github.com/rust-lang/rust/issues/60553> for more information
8 = help: add `#![feature(arbitrary_enum_discriminant)]` to the crate attributes to enable
9
10error[E0658]: discriminants on non-unit variants are experimental
11 --> $DIR/feature-gate-arbitrary_enum_discriminant.rs:8:14
12 |
13LL | Struct{} = 3,
14 | ^
15 |
16 = note: see issue #60553 <https://github.com/rust-lang/rust/issues/60553> for more information
17 = help: add `#![feature(arbitrary_enum_discriminant)]` to the crate attributes to enable
18
19error[E0658]: custom discriminant values are not allowed in enums with tuple or struct variants
20 --> $DIR/feature-gate-arbitrary_enum_discriminant.rs:4:10
21 |
22LL | Unit = 1,
23 | ^ disallowed custom discriminant
24LL |
25LL | Tuple() = 2,
26 | ----------- tuple variant defined here
27LL |
28LL | Struct{} = 3,
29 | ------------ struct variant defined here
30 |
31 = note: see issue #60553 <https://github.com/rust-lang/rust/issues/60553> for more information
32 = help: add `#![feature(arbitrary_enum_discriminant)]` to the crate attributes to enable
33
34error: aborting due to 3 previous errors
35
36For more information about this error, try `rustc --explain E0658`.