1
Fork 0

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:
Federico Ravasio 2016-08-03 22:13:07 +02:00
parent 40f3ee2a01
commit 7c58b26f70
3 changed files with 14 additions and 5 deletions

View file

@ -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
}