summary refs log tree commit diff
path: root/src/test/ui/rfc-2005-default-binding-mode/slice.rs
blob: 1484b8c4a1f13e6f519ce65dee4914826b5925bf (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 @ ..] => {},
    };
}