Skip to content

Commit d10d337

Browse files
committed
ui-changes-for-nightly
1 parent ea8bdee commit d10d337

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/ui/discriminant.stderr

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ error[E0552]: unrecognized representation hint
66
|
77
= help: valid reprs are `Rust` (default), `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`
88

9-
error[E0732]: `#[repr(inttype)]` must be specified
9+
error[E0732]: `#[repr(inttype)]` must be specified for enums with explicit discriminants and non-unit variants
1010
--> tests/ui/discriminant.rs:12:1
1111
|
1212
12 | enum MissingIntegerRepr<T> {
1313
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
14+
13 | A(PhantomData<T>) = 0,
15+
| - explicit discriminant on non-unit variant specified here
1416

15-
error[E0732]: `#[repr(inttype)]` must be specified
17+
error[E0732]: `#[repr(inttype)]` must be specified for enums with explicit discriminants and non-unit variants
1618
--> tests/ui/discriminant.rs:18:1
1719
|
1820
18 | enum MissingIntegerReprC<T> {
1921
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
22+
19 | A(PhantomData<T>) = 0,
23+
| - explicit discriminant on non-unit variant specified here

0 commit comments

Comments
 (0)