Fix rebase
This commit is contained in:
parent
5993f5d0f8
commit
53a711fdeb
1 changed files with 5 additions and 0 deletions
|
@ -7,6 +7,11 @@ LL | let _moved @ _from = String::from("foo");
|
||||||
| | value moved here
|
| | value moved here
|
||||||
| value used here after move
|
| value used here after move
|
||||||
-Ztrack-diagnostics: created at compiler/rustc_borrowck/src/borrowck_errors.rs:LL:CC
|
-Ztrack-diagnostics: created at compiler/rustc_borrowck/src/borrowck_errors.rs:LL:CC
|
||||||
|
|
|
||||||
|
help: borrow this binding in the pattern to avoid moving the value
|
||||||
|
|
|
||||||
|
LL | let _moved @ ref _from = String::from("foo");
|
||||||
|
| +++
|
||||||
|
|
||||||
error: aborting due to previous error
|
error: aborting due to previous error
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue