1
- error: type alias enum variants are not yet allowed
1
+ error: enum variants on type aliases are experimental
2
2
--> $DIR/feature-gate-type_alias_enum_variants.rs:19:13
3
3
|
4
4
LL | let t = Alias::Bar(0);
@@ -19,30 +19,30 @@ LL | let t = Alias::Bar(0);
19
19
|
20
20
= help: did you mean `Bar`?
21
21
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
24
24
|
25
25
LL | let t = Alias::Baz { i: 0 };
26
26
| ^^^^^^^^^^
27
27
|
28
28
= help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
29
29
30
30
error[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
32
32
|
33
33
LL | let t = Alias::Baz { i: 0 };
34
34
| ^^^^^^^^^^ help: use fully-qualified syntax: `<Foo as Trait>::Baz`
35
35
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
38
38
|
39
39
LL | Alias::Bar(_i) => {}
40
40
| ^^^^^^^^^^^^^^
41
41
|
42
42
= help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
43
43
44
44
error[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
46
46
|
47
47
LL | enum Foo {
48
48
| -------- variant `Bar` not found here
@@ -52,16 +52,16 @@ LL | Alias::Bar(_i) => {}
52
52
|
53
53
= help: did you mean `Bar`?
54
54
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
57
57
|
58
58
LL | Alias::Baz { i: _i } => {}
59
59
| ^^^^^^^^^^
60
60
|
61
61
= help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
62
62
63
63
error[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
65
65
|
66
66
LL | Alias::Baz { i: _i } => {}
67
67
| ^^^^^^^^^^ help: use fully-qualified syntax: `<Foo as Trait>::Baz`
0 commit comments