Files
rust/src/test/ui/parser/issue-17383.stderr

16 lines
564 B
Plaintext
Raw Normal View History

2019-05-09 17:08:55 -04:00
error[E0658]: custom discriminant values are not allowed in enums with tuple or struct variants
--> $DIR/issue-17383.rs:2:9
2018-10-20 23:36:17 +03:00
|
LL | A = 3,
2019-05-09 17:08:55 -04:00
| ^ disallowed custom discriminant
LL |
LL | B(usize)
2019-05-09 17:08:55 -04:00
| -------- tuple variant defined here
|
2020-02-07 13:07:02 +01:00
= note: see issue #60553 <https://github.com/rust-lang/rust/issues/60553> for more information
= help: add `#![feature(arbitrary_enum_discriminant)]` to the crate attributes to enable
2018-10-20 23:36:17 +03:00
error: aborting due to previous error
2019-05-09 17:08:55 -04:00
For more information about this error, try `rustc --explain E0658`.