Suggest ref
for some patterns as a fallback
This commit is contained in:
parent
4f7c257fd8
commit
dd72b1a0df
34 changed files with 476 additions and 63 deletions
|
@ -7,8 +7,4 @@ fn main() {
|
|||
let p = (U, U);
|
||||
let (a, mut b) = &p;
|
||||
//~^ ERROR cannot move out of a shared reference
|
||||
|
||||
let mut p = (U, U);
|
||||
let (a, mut b) = &mut p;
|
||||
//~^ ERROR cannot move out of a mutable reference
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue