Skip to content

Bogus unrelated --explain text for "error[E0507]: cannot move out of captured outer variable in an Fn closure" #37904

Closed
@cjsut

Description

@cjsut

rustc --explain E0507 prints a message which apparently discusses "error[E0507]: cannot move out of borrowed content":

You tried to move out of a value which was borrowed. ...

(That's funny, because the error said I tried to "move out of captured outer variable in an Fn closure".)

  • If "cannot move out of captured outer variable in an Fn closure" really is the same error, this should be explained in the --explain text.
  • If it is not the same error, it should have its own error code and explanation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions