Skip to content

E0009 needs to be updated to new format #35193

Closed
@sophiajt

Description

@sophiajt

From: src/test/compile-fail/E0009.rs

A span_note needs to be updated to a span_label. We may also want to update the span used for the error to the second label. This would take this:

error[E0009]: cannot bind by-move and by-ref in the same pattern
  --> src/test/compile-fail/E0009.rs:15:15
   |
15 |         Some((y, ref z)) => {}, //~ ERROR E0009
   |               ^
   |
note: by-ref binding occurs here
  --> src/test/compile-fail/E0009.rs:15:18
   |
15 |         Some((y, ref z)) => {}, //~ ERROR E0009
   |                  ^^^^^

to:

error[E0009]: cannot bind by-move and by-ref in the same pattern
  --> src/test/compile-fail/E0009.rs:15:15
   |
15 |         Some((y, ref z)) => {}, //~ ERROR E0009
   |               -  ^^^^^ both by-ref and by-move used
   |               |
   |               by-move pattern here

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions