Account for UnOps in borrowck message
This commit is contained in:
parent
b367c25367
commit
0953608deb
4 changed files with 19 additions and 4 deletions
|
@ -368,6 +368,11 @@ pub(crate) enum CaptureReasonNote {
|
|||
#[primary_span]
|
||||
var_span: Span,
|
||||
},
|
||||
#[note(borrowck_calling_operator_moves)]
|
||||
UnOpMoveByOperator {
|
||||
#[primary_span]
|
||||
span: Span,
|
||||
},
|
||||
#[note(borrowck_calling_operator_moves_lhs)]
|
||||
LhsMoveByOperator {
|
||||
#[primary_span]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue