Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
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
}
_
=>
{}
}
}