2018-02-24 22:21:33 +03:00
|
|
|
#![feature(slice_patterns)]
|
2017-10-06 16:30:23 -04:00
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
let sl: &[u8] = b"foo";
|
|
|
|
|
2017-11-20 13:13:27 +01:00
|
|
|
match sl { //~ ERROR non-exhaustive patterns
|
2017-10-06 16:30:23 -04:00
|
|
|
[first, remainder..] => {},
|
|
|
|
};
|
|
|
|
}
|