use structured suggestions for nonexistent fields

This commit is contained in:
Andy Russell 2018-12-20 18:10:46 -05:00
parent 79d8a0fcef
commit dfc326d0e2
No known key found for this signature in database
GPG key ID: BE2221033EDBC374
18 changed files with 50 additions and 35 deletions

View file

@ -2,7 +2,7 @@ error[E0609]: no field `1` on type `Foo`
--> $DIR/ex-E0612.rs:5:6
|
LL | y.1; //~ ERROR no field `1` on type `Foo`
| ^ did you mean `0`?
| ^ help: a field with a similar name exists: `0`
error: aborting due to previous error