2019-05-09 17:08:55 -04:00
|
|
|
error[E0658]: custom discriminant values are not allowed in enums with tuple or struct variants
|
2019-01-11 23:12:29 -08:00
|
|
|
--> $DIR/issue-17383.rs:2:9
|
2018-10-20 23:36:17 +03:00
|
|
|
|
|
2019-01-11 23:12:29 -08:00
|
|
|
LL | A = 3,
|
2019-05-09 17:08:55 -04:00
|
|
|
| ^ disallowed custom discriminant
|
2019-05-22 16:56:51 -04:00
|
|
|
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
|
2019-07-09 11:32:08 +02:00
|
|
|
= 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`.
|