Sign in
fuchsia
/
third_party
/
rust
/
57e8fc56852e7728d7160242bf13c3ab6e066bd8
/
.
/
src
/
test
/
ui
/
rfc-2005-default-binding-mode
/
for.rs
blob: aa42c7bb9c2f1368dffeb1bb1f0ea8fe9965190e [
file
] [
log
] [
blame
]
#![
feature
(
move_ref_pattern
)]
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
}
}