rust/src/test/ui/issues/issue-37598.rs
2019-07-28 06:53:39 +02:00

13 lines
190 B
Rust

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