Closed
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