Skip to content

NLL Diagnostic Review 3: missing indication that a "partial move" has occurred #56657

Closed
@davidtwco

Description

@davidtwco

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.

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

No one assigned

    Labels

    A-NLLArea: Non-lexical lifetimes (NLL)E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.NLL-diagnosticsWorking towards the "diagnostic parity" goal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions