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
110 B
Rust
Raw Normal View History

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