Skip to content

E0409 needs to be updated to new format #35699

@sophiajt

Description

@sophiajt

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

E0409 needs a span_label, updating it from:

error[E0409]: variable `y` is bound with different mode in pattern #2 than in pattern #1
  --> src/test/compile-fail/E0409.rs:15:23
   |
15 |         (0, ref y) | (y, 0) => {} //~ ERROR E0409
   |                       ^

To:

error[E0409]: variable `y` is bound with different mode in pattern #2 than in pattern #1
  --> src/test/compile-fail/E0409.rs:15:23
   |
15 |         (0, ref y) | (y, 0) => {} //~ ERROR E0409
   |                       ^ bound in different ways

Bonus: add the span_label for the previous binding:

error[E0409]: variable `y` is bound with different mode in pattern #2 than in pattern #1
  --> src/test/compile-fail/E0409.rs:15:23
   |
15 |         (0, ref y) | (y, 0) => {} //~ ERROR E0409
   |             -----     ^ bound in different ways
   |             |
   |             first binding

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions