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