1- error: type alias enum variants are not yet allowed
1+ error: enum variants on type aliases are experimental
22 --> $DIR/feature-gate-type_alias_enum_variants.rs:19:13
33 |
44LL | let t = Alias::Bar(0);
@@ -19,30 +19,30 @@ LL | let t = Alias::Bar(0);
1919 |
2020 = help: did you mean `Bar`?
2121
22- error: type alias enum variants are not yet allowed
23- --> $DIR/feature-gate-type_alias_enum_variants.rs:20 :13
22+ error: enum variants on type aliases are experimental
23+ --> $DIR/feature-gate-type_alias_enum_variants.rs:22 :13
2424 |
2525LL | let t = Alias::Baz { i: 0 };
2626 | ^^^^^^^^^^
2727 |
2828 = help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
2929
3030error[E0223]: ambiguous associated type
31- --> $DIR/feature-gate-type_alias_enum_variants.rs:20 :13
31+ --> $DIR/feature-gate-type_alias_enum_variants.rs:22 :13
3232 |
3333LL | let t = Alias::Baz { i: 0 };
3434 | ^^^^^^^^^^ help: use fully-qualified syntax: `<Foo as Trait>::Baz`
3535
36- error: type alias enum variants are not yet allowed
37- --> $DIR/feature-gate-type_alias_enum_variants.rs:22 :9
36+ error: enum variants on type aliases are experimental
37+ --> $DIR/feature-gate-type_alias_enum_variants.rs:26 :9
3838 |
3939LL | Alias::Bar(_i) => {}
4040 | ^^^^^^^^^^^^^^
4141 |
4242 = help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
4343
4444error[E0599]: no variant named `Bar` found for type `Foo` in the current scope
45- --> $DIR/feature-gate-type_alias_enum_variants.rs:22 :16
45+ --> $DIR/feature-gate-type_alias_enum_variants.rs:26 :16
4646 |
4747LL | enum Foo {
4848 | -------- variant `Bar` not found here
@@ -52,16 +52,16 @@ LL | Alias::Bar(_i) => {}
5252 |
5353 = help: did you mean `Bar`?
5454
55- error: type alias enum variants are not yet allowed
56- --> $DIR/feature-gate-type_alias_enum_variants.rs:23 :9
55+ error: enum variants on type aliases are experimental
56+ --> $DIR/feature-gate-type_alias_enum_variants.rs:29 :9
5757 |
5858LL | Alias::Baz { i: _i } => {}
5959 | ^^^^^^^^^^
6060 |
6161 = help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
6262
6363error[E0223]: ambiguous associated type
64- --> $DIR/feature-gate-type_alias_enum_variants.rs:23 :9
64+ --> $DIR/feature-gate-type_alias_enum_variants.rs:29 :9
6565 |
6666LL | Alias::Baz { i: _i } => {}
6767 | ^^^^^^^^^^ help: use fully-qualified syntax: `<Foo as Trait>::Baz`
0 commit comments