1
Fork 0

check_legality_of_move_bindings: generalize diagnostics & add comments

This commit is contained in:
Mazdak Farrokhzad 2019-12-14 18:20:13 +01:00
parent 25b6a28a51
commit 6a87f99620
12 changed files with 33 additions and 30 deletions

View file

@ -4,7 +4,7 @@ error[E0009]: cannot bind by-move and by-ref in the same pattern
LL | for (n, mut m) in &tups {
| - ^^^^^ by-move pattern here
| |
| both by-ref and by-move used
| by-ref pattern here
error[E0507]: cannot move out of a shared reference
--> $DIR/for.rs:6:23