Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
rfc-2005-default-binding-mode
/
for.rs
blob: d6c5a13b1bdb03fe465fc06b26874dd32d691af2 [
file
] [
log
] [
blame
]
struct
Foo
{}
pub
fn
main
()
{
let
mut
tups
=
vec
![(
Foo
{},
Foo
{})];
// The below desugars to &(ref n, mut m).
for
(
n
,
mut
m
)
in
&
tups
{
//~^ ERROR cannot move out of a shared reference
}
}