]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rfc-2005-default-binding-mode/slice.rs
Rollup merge of #63055 - Mark-Simulacrum:save-analysis-clean-2, r=Xanewok
[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 }