Sign in
fuchsia
/
third_party
/
rust
/
31f5d69ba4f4d78740190a08ea097b41b00d96cb
/
.
/
src
/
test
/
ui
/
rfc-2005-default-binding-mode
/
for.rs
blob: 919ae62a182564bd8bea4f14c7aa2e2e531284d6 [
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 borrowed content
}
}