diff options
Diffstat (limited to 'src/test/ui/const-generics/arg-in-pat-2.rs')
-rw-r--r-- | src/test/ui/const-generics/arg-in-pat-2.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/const-generics/arg-in-pat-2.rs b/src/test/ui/const-generics/arg-in-pat-2.rs new file mode 100644 index 000000000..dc9e722ed --- /dev/null +++ b/src/test/ui/const-generics/arg-in-pat-2.rs @@ -0,0 +1,10 @@ +// check-pass +enum Generic<const N: usize> { + Variant, +} + +fn main() { + match todo!() { + Generic::<0usize>::Variant => todo!() + } +} |