check_legality_of_move_bindings: generalize diagnostics & add comments
This commit is contained in:
parent
25b6a28a51
commit
6a87f99620
12 changed files with 33 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue