Skip to content

Commit 41c1afc

Browse files
committed
Add 80531
Issue: rust-lang/rust#80531
1 parent de8aec9 commit 41c1afc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ices/80531.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#![crate_type = "lib"]
2+
3+
enum ConstGenericEnum<const N: usize> {
4+
Foo([i32; N]),
5+
Bar,
6+
}
7+
8+
fn foo<const N: usize>(val: &ConstGenericEnum<N>) {
9+
if let ConstGenericEnum::<N>::Foo(field, ..) = val {
10+
todo!()
11+
} else {
12+
todo!()
13+
}
14+
}

0 commit comments

Comments
 (0)