rust/src/test/ui/issues/issue-37598.rs
2018-12-25 21:08:33 -07:00

14 lines
210 B
Rust

// compile-pass
#![allow(dead_code)]
#![feature(slice_patterns)]
fn check(list: &[u8]) {
match list {
&[] => {},
&[_u1, _u2, ref _next..] => {},
&[_u1] => {},
}
}
fn main() {}