mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-02 09:32:46 +00:00
10 lines
285 B
Rust
10 lines
285 B
Rust
fn main() {
|
|
match &[1, 2, 3][..] {
|
|
[1, rest..] => println!("{rest:?}"),
|
|
//~^ ERROR cannot find value `rest` in this scope
|
|
//~| ERROR cannot find value `rest` in this scope
|
|
//~| ERROR `X..` patterns in slices are experimental
|
|
_ => {}
|
|
}
|
|
}
|