-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call 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.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
Description
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
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call 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.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.