1 error[E0009]: cannot bind by-move and by-ref in the same pattern
4 LL | for (n, mut m) in &tups {
5 | - ^^^^^ by-move pattern here
7 | both by-ref and by-move used
9 error[E0507]: cannot move out of a shared reference
12 LL | for (n, mut m) in &tups {
16 | move occurs because `m` has type `Foo`, which does not implement the `Copy` trait
18 error: aborting due to 2 previous errors
20 Some errors have detailed explanations: E0009, E0507.
21 For more information about an error, try `rustc --explain E0009`.