about summary refs log tree commit diff
path: root/tests/ui/consts/const_prop_slice_pat_ice.rs
blob: edb0c509014811fb7c7c8683539ab9b9d0eee36e (plain)
1
2
3
4
5
6
7
8
//@ check-pass

fn main() {
    match &[0, 1] as &[i32] {
        [a @ .., x] => {}
        &[] => {}
    }
}