10 lines
168 B
Rust
10 lines
168 B
Rust
#![feature(slice_patterns)]
|
|
|
|
pub fn main() {
|
|
let sl: &[u8] = b"foo";
|
|
|
|
match sl { //~ ERROR non-exhaustive patterns
|
|
[first, remainder..] => {},
|
|
};
|
|
}
|