summary refs log tree commit diff
path: root/src/test/ui/rfc-2005-default-binding-mode/slice.rs
blob: fd85bf7f16007c9430b52c5b8bcf210756edf41a (plain)
1
2
3
4
5
6
7
8
9
#![feature(slice_patterns)]

pub fn main() {
    let sl: &[u8] = b"foo";

    match sl { //~ ERROR non-exhaustive patterns
        [first, remainder..] => {},
    };
}