1
Fork 0

Account for UnOps in borrowck message

This commit is contained in:
Esteban Küber 2024-03-12 17:21:15 +00:00
parent b367c25367
commit 0953608deb
4 changed files with 19 additions and 4 deletions

View file

@ -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]