Closed
Description
From: src/test/compile-fail/E0025.rs
E0025 needs span_label instead of span_note, changing it from:
error[E0025]: field `a` bound multiple times in the pattern
--> src/test/compile-fail/E0025.rs:18:21
|
18 | let Foo { a: x, a: y, b: 0 } = x; //~ ERROR E0025
| ^^^^
|
note: field `a` previously bound here
--> src/test/compile-fail/E0025.rs:18:15
|
18 | let Foo { a: x, a: y, b: 0 } = x; //~ ERROR E0025
| ^^^^
To:
error[E0025]: field `a` bound multiple times in the pattern
--> src/test/compile-fail/E0025.rs:18:21
|
18 | let Foo { a: x, a: y, b: 0 } = x; //~ ERROR E0025
| ---- ^^^^ multiple uses of `a` in pattern
| |
| first use of `a`