We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1593ac9 commit 620a03fCopy full SHA for 620a03f
src/test/ui/issues/issue-57866.rs
@@ -0,0 +1,26 @@
1
+// compile-pass
2
+
3
+#![feature(type_alias_enum_variants)]
4
5
+enum Outer<T> {
6
+ A(T)
7
+}
8
9
+enum Inner {
10
+ A(i32)
11
12
13
+type OuterAlias = Outer<Inner>;
14
15
+fn ice(x: OuterAlias) {
16
+ // Fine
17
+ match x {
18
+ OuterAlias::A(Inner::A(_)) => (),
19
+ }
20
+ // Not fine
21
22
+ OuterAlias::A(Inner::A(y)) => (),
23
24
25
26
+fn main() {}
0 commit comments