]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2005-default-binding-mode/slice.rs
Rollup merge of #62994 - iluuu1994:test-for-43398, r=nikomatsakis
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / slice.rs
1 #![feature(slice_patterns)]
2
3 pub fn main() {
4     let sl: &[u8] = b"foo";
5
6     match sl { //~ ERROR non-exhaustive patterns
7         [first, remainder @ ..] => {},
8     };
9 }