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

Commit

Permalink
Add 80531
Browse files Browse the repository at this point in the history
  • Loading branch information
light4 committed Dec 31, 2020
1 parent de8aec9 commit 41c1afc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ices/80531.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#![crate_type = "lib"]

enum ConstGenericEnum<const N: usize> {
Foo([i32; N]),
Bar,
}

fn foo<const N: usize>(val: &ConstGenericEnum<N>) {
if let ConstGenericEnum::<N>::Foo(field, ..) = val {
todo!()
} else {
todo!()
}
}

0 comments on commit 41c1afc

Please sign in to comment.