Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-issue-2657-2.rs
blob: cea561104874499b20da10389b83aeb78b4b119d [
file
] [
log
] [
blame
]
#![
feature
(
box_syntax
)]
fn
main
()
{
let
x
:
Option
<
Box
<
_
>>
=
Some
(
box
1
);
match
x
{
Some
(
ref
y
)
=>
{
let
_b
=
*
y
;
//~ ERROR cannot move out
}
_
=>
{}
}
}