error: discriminant out of range for U4 --> tests_error/enum_discriminants.rs:5:9 | 5 | A = 16, | ^^^^^^ error: discriminant out of range for U5 --> tests_error/enum_discriminants.rs:10:9 | 10 | B, | ^ error: discriminant 0 used multiple times --> tests_error/enum_discriminants.rs:16:9 | 16 | X = 0, | ^ error: unused discriminant(s): 1; consider specifying a `..` variant --> tests_error/enum_discriminants.rs:19:14 | 19 | pub enum MiddleGapWithoutPlaceholder: 2 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ error: unused discriminant(s): 3; consider specifying a `..` variant --> tests_error/enum_discriminants.rs:25:14 | 25 | pub enum EndGapWithoutPlaceholder: 2 { | ^^^^^^^^^^^^^^^^^^^^^^^^ error: unused discriminant(s): 1, 2, 3; consider specifying a `..` variant --> tests_error/enum_discriminants.rs:31:14 | 31 | pub enum ThreeUnused: 2 { | ^^^^^^^^^^^ error: unused discriminant(s): 4, 5, 6, ..; consider specifying a `..` variant --> tests_error/enum_discriminants.rs:35:14 | 35 | pub enum FourUnused: 3 { | ^^^^^^^^^^ error: unused discriminant(s): 3, 4, 5, ..; consider specifying a `..` variant --> tests_error/enum_discriminants.rs:42:14 | 42 | pub enum FiveUnused: 3 { | ^^^^^^^^^^