Updated E0071 to new format.
The span underlines only the name of the thing that's not a struct rather than the whole expression.
This commit is contained in:
parent
40f3ee2a01
commit
7c58b26f70
3 changed files with 14 additions and 5 deletions
|
@ -13,4 +13,5 @@ trait TraitNotAStruct {}
|
|||
fn main() {
|
||||
TraitNotAStruct{ value: 0 };
|
||||
//~^ ERROR: `TraitNotAStruct` does not name a struct or a struct variant [E0071]
|
||||
//~| NOTE not a struct
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue