Closed
Description
From: src/test/compile-fail/E0004.rs
E0004 needs a span_label, taking it from:
error[E0004]: non-exhaustive patterns: `HastaLaVistaBaby` not covered
--> src/test/compile-fail/E0004.rs:19:5
|
19 | match x { //~ ERROR E0004
| ^
to:
error[E0004]: non-exhaustive patterns: `HastaLaVistaBaby` not covered
--> src/test/compile-fail/E0004.rs:19:5
|
19 | match x { //~ ERROR E0004
| ^ pattern `HastaLaVistaBaby` not covered
Bonus: We may want to update the span that this error uses as well to point at something other than the beginning of the match.