Unit test from #57866.

This commit is contained in:
Felix S. Klock II 2019-01-25 15:19:37 +01:00
parent 1593ac9b9f
commit 620a03f5aa

View File

@ -0,0 +1,26 @@
// compile-pass
#![feature(type_alias_enum_variants)]
enum Outer<T> {
A(T)
}
enum Inner {
A(i32)
}
type OuterAlias = Outer<Inner>;
fn ice(x: OuterAlias) {
// Fine
match x {
OuterAlias::A(Inner::A(_)) => (),
}
// Not fine
match x {
OuterAlias::A(Inner::A(y)) => (),
}
}
fn main() {}