generated from rust-lang/project-group-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
A-generic-exprsGeneric const expressionsGeneric const expressionsC-use-caseCategory: This is a use case for a featureCategory: This is a use case for a feature
Description
Code description
fn concrete(input: [u32; 10]) {
// ...
}
fn generic<const N: usize>(input: [u32; N]) {
match N {
10 => concrete(input),
_ => panic!("invalid input size"),
}
}
Some people have wanted this to compile, this has some overlap with pattern types I expect cc @oli-obk
Metadata
Metadata
Assignees
Labels
A-generic-exprsGeneric const expressionsGeneric const expressionsC-use-caseCategory: This is a use case for a featureCategory: This is a use case for a feature