blob: d6c5a13b1bdb03fe465fc06b26874dd32d691af2 (
plain)
| 1
2
3
4
5
6
7
8
9
 | 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
    }
}
 |