type_alias_enum_variants: Remove feature gate test.

This commit is contained in:
Mazdak Farrokhzad 2019-05-31 15:55:17 +02:00
parent ac94bbef55
commit e5060da781
2 changed files with 0 additions and 53 deletions

View File

@ -1,19 +0,0 @@
enum Foo {
Bar(i32),
Baz { i: i32 },
}
type Alias = Foo;
fn main() {
let t = Alias::Bar(0);
//~^ ERROR enum variants on type aliases are experimental
let t = Alias::Baz { i: 0 };
//~^ ERROR enum variants on type aliases are experimental
match t {
Alias::Bar(_i) => {}
//~^ ERROR enum variants on type aliases are experimental
Alias::Baz { i: _i } => {}
//~^ ERROR enum variants on type aliases are experimental
}
}

View File

@ -1,34 +0,0 @@
error: enum variants on type aliases are experimental
--> $DIR/feature-gate-type_alias_enum_variants.rs:9:13
|
LL | let t = Alias::Bar(0);
| ^^^^^^^^^^
|
= help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
error: enum variants on type aliases are experimental
--> $DIR/feature-gate-type_alias_enum_variants.rs:11:13
|
LL | let t = Alias::Baz { i: 0 };
| ^^^^^^^^^^
|
= help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
error: enum variants on type aliases are experimental
--> $DIR/feature-gate-type_alias_enum_variants.rs:14:9
|
LL | Alias::Bar(_i) => {}
| ^^^^^^^^^^^^^^
|
= help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
error: enum variants on type aliases are experimental
--> $DIR/feature-gate-type_alias_enum_variants.rs:16:9
|
LL | Alias::Baz { i: _i } => {}
| ^^^^^^^^^^
|
= help: add `#![feature(type_alias_enum_variants)]` to the crate attributes to enable
error: aborting due to 4 previous errors