blob: 7227a5d96732529c755dd25818a50224aa873a8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//@ 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
[[]] => (),
_ => (),
}
}
|