8 lines
140 B
Rust
8 lines
140 B
Rust
|
fn main() {
|
||
|
let a = ~[];
|
||
|
match a {
|
||
|
[1, ..tail, ..tail] => {}, //~ ERROR: expected `]` but found `,`
|
||
|
_ => ()
|
||
|
}
|
||
|
}
|