Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
suggestions
/
option-content-move-from-tuple-match.rs
blob: 7f22d81360b34b6f447095e609c75b8d6a8acc6b [
file
] [
log
] [
blame
] [
edit
]
fn
foo
(
a
:
&
Option
<
String
>,
b
:
&
Option
<
String
>)
{
match
(
a
,
b
)
{
//~^ ERROR cannot move out of a shared reference
(
None
,
&
c
)
=>
&
c
.
unwrap
(),
(&
Some
(
ref
c
),
_
)
=>
c
,
};
}
fn
main
()
{}