Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
unsized
/
issue-115203.rs
blob: 7227a5d96732529c755dd25818a50224aa873a8d [
file
] [
log
] [
blame
]
//@ 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
[[]]
=>
(),
_
=>
(),
}
}