Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
span
/
borrowck-ref-into-rvalue.rs
blob: c11aa1af54095e3dbf0fc2b197ed7e599923717c [
file
] [
log
] [
blame
]
fn
main
()
{
let
msg
;
match
Some
(
"Hello"
.
to_string
())
{
//~^ ERROR temporary value dropped while borrowed
Some
(
ref
m
)
=>
{
msg
=
m
;
},
None
=>
{
panic
!()
}
}
println
!(
"{}"
,
*
msg
);
}