blob: ff25365ea50c0080f4e94784c3a9298f9ad57bcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// compile-flags: --emit=link -Zmir-opt-level=2 -Zpolymorphize=on
fn foo<T>() {
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
[[x]] => {}
_ => (),
}
}
fn main() {}
|