-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Closed
Copy link
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.NLL-diagnosticsWorking towards the "diagnostic parity" goalWorking towards the "diagnostic parity" goal
Description
In ui/borrowck/borrowck-uninit-field-access.ast.nll.stderr
, the below error should have the label value used here after move
changed to value used here after partial move
.
rust/src/test/ui/borrowck/borrowck-uninit-field-access.ast.nll.stderr
Lines 17 to 25 in 850fc6a
error[E0382]: use of moved value: `line2` | |
--> $DIR/borrowck-uninit-field-access.rs:44:5 | |
| | |
LL | let _moved = (line2.origin, line2.middle); | |
| ------------ value moved here | |
LL | line2.consume(); //[ast]~ ERROR use of partially moved value: `line2` [E0382] | |
| ^^^^^ value used here after move | |
| | |
= note: move occurs because `line2.middle` has type `Point`, which does not implement the `Copy` trait |
Metadata
Metadata
Assignees
Labels
A-NLLArea: Non-lexical lifetimes (NLL)Area: Non-lexical lifetimes (NLL)E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.NLL-diagnosticsWorking towards the "diagnostic parity" goalWorking towards the "diagnostic parity" goal