2024-02-16 14:02:50 -06:00
|
|
|
//@ compile-flags: --emit link
|
2023-09-07 12:39:26 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let a: [i32; 0] = [];
|
|
|
|
match [a[..]] {
|
|
|
|
//~^ ERROR cannot move a value of type `[i32]
|
|
|
|
//~| ERROR cannot move out of type `[i32]`, a non-copy slice
|
|
|
|
[[]] => (),
|
|
|
|
_ => (),
|
|
|
|
}
|
|
|
|
}
|