Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 4725af1

Browse files
authored
Add 80531 (#602)
Issue: rust-lang/rust#80531
1 parent e76e997 commit 4725af1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ices/80531.rs

+14
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)