diff options
Diffstat (limited to 'src/test/ui/consts/const_prop_slice_pat_ice.rs')
-rw-r--r-- | src/test/ui/consts/const_prop_slice_pat_ice.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/consts/const_prop_slice_pat_ice.rs b/src/test/ui/consts/const_prop_slice_pat_ice.rs new file mode 100644 index 000000000..60b06a497 --- /dev/null +++ b/src/test/ui/consts/const_prop_slice_pat_ice.rs @@ -0,0 +1,8 @@ +// check-pass + +fn main() { + match &[0, 1] as &[i32] { + [a @ .., x] => {} + &[] => {} + } +} |