10 lines
154 B
Rust
10 lines
154 B
Rust
#![feature(slice_patterns)]
|
|
|
|
fn main() {
|
|
let r = &[1, 2];
|
|
match r {
|
|
&[a, b, c, rest @ ..] => {
|
|
//~^ ERROR E0528
|
|
}
|
|
}
|
|
}
|