- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Closed
Description
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
Labels
No labels