Sign in
fuchsia
/
third_party
/
rust
/
15f159addefd8fea7564ba7617c8af78582b7816
/
.
/
src
/
test
/
ui
/
moves
/
move-out-of-slice-1.rs
blob: 982648f5b237cc0a391a8cb2f2a11f18c18736c1 [
file
] [
log
] [
blame
]
#![
feature
(
box_patterns
)]
struct
A
;
fn
main
()
{
let
a
:
Box
<[
A
]>
=
Box
::
new
([
A
]);
match
a
{
//~ ERROR cannot move out of type `[A]`, a non-copy slice
box
[
a
]
=>
{},
_
=>
{}
}
}