Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
rfc-2005-default-binding-mode
/
for.rs
blob: 3bf053eb874ce62496ffc1ac6426596b1468d5b9 [
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 bind by-move and by-ref in the same pattern
//~| ERROR cannot move out of a shared reference
}
}