rust/tests/ui/consts/const_prop_slice_pat_ice.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
109 B
Rust
Raw Normal View History

2019-12-22 18:24:11 -06:00
// check-pass
fn main() {
match &[0, 1] as &[i32] {
[a @ .., x] => {}
&[] => {}
}
}