fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
550 B15 linesraw
1error[E0658]: custom discriminant values are not allowed in enums with tuple or struct variants
2  --> $DIR/issue-17383.rs:2:9
3   |
4LL |     A = 3,
5   |         ^ disallowed custom discriminant
6LL |
7LL |     B(usize)
8   |     -------- tuple variant defined here
9   |
10   = note: for more information, see https://github.com/rust-lang/rust/issues/60553
11   = help: add `#![feature(arbitrary_enum_discriminant)]` to the crate attributes to enable
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0658`.