summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfc-2005-default-binding-mode/slice.rs
blob: 363a0e3e649d9a5fe66432509252cd7ad9ca9291 (plain)
1
2
3
4
5
6
7
pub fn main() {
    let sl: &[u8] = b"foo";

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