Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
794181788d94b7bc9e4717b97313f525054c4710
/
.
/
src
/
test
/
ui
/
suggestions
/
for-i-in-vec.rs
blob: 304fe8cc81f1a9fb526a9c22a04b9d9ecdf748cd [
file
] [
log
] [
blame
]
// run-rustfix
#![
allow
(
dead_code
)]
struct
Foo
{
v
:
Vec
<
u32
>,
}
impl
Foo
{
fn
bar
(&
self
)
{
for
_ in
self
.
v
{
//~ ERROR cannot move out of `self.v` which is behind a shared reference
}
}
}
fn
main
()
{}