mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
12 lines
257 B
Rust
12 lines
257 B
Rust
// compile-flags: --emit link
|
|
|
|
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
|
|
[[]] => (),
|
|
_ => (),
|
|
}
|
|
}
|