]> git.lizzy.rs Git - rust.git/blob - tests/ui/rfc-2005-default-binding-mode/slice.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / ui / rfc-2005-default-binding-mode / slice.rs
1 pub fn main() {
2     let sl: &[u8] = b"foo";
3
4     match sl { //~ ERROR non-exhaustive patterns
5         [first, remainder @ ..] => {},
6     };
7 }