]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/tag-variant-disr-non-nullary.stderr
Rollup merge of #68705 - BijanT:ll_remove, r=Mark-Simulacrum
[rust.git] / src / test / ui / parser / tag-variant-disr-non-nullary.stderr
1 error[E0658]: custom discriminant values are not allowed in enums with tuple or struct variants
2   --> $DIR/tag-variant-disr-non-nullary.rs:2:11
3    |
4 LL |     Red = 0xff0000,
5    |           ^^^^^^^^ disallowed custom discriminant
6 LL |
7 LL |     Green = 0x00ff00,
8    |             ^^^^^^^^ disallowed custom discriminant
9 LL |     Blue = 0x0000ff,
10    |            ^^^^^^^^ disallowed custom discriminant
11 LL |     Black = 0x000000,
12    |             ^^^^^^^^ disallowed custom discriminant
13 LL |     White = 0xffffff,
14    |             ^^^^^^^^ disallowed custom discriminant
15 LL |     Other(usize),
16    |     ------------ tuple variant defined here
17 LL |     Other2(usize, usize),
18    |     -------------------- tuple variant defined here
19    |
20    = note: see issue #60553 <https://github.com/rust-lang/rust/issues/60553> for more information
21    = help: add `#![feature(arbitrary_enum_discriminant)]` to the crate attributes to enable
22
23 error: aborting due to previous error
24
25 For more information about this error, try `rustc --explain E0658`.