limit and delimit available fields in note

Also, don't show the note if no fields are available (usually due to
privacy).
This commit is contained in:
Zack M. Davis 2017-07-31 00:31:32 -07:00
parent bf7e91f61d
commit 2dbfa3995e
11 changed files with 46 additions and 29 deletions

View file

@ -14,7 +14,7 @@ fn main() {
let s = S{0b1: 10, 0: 11};
//~^ ERROR struct `S` has no field named `0b1`
//~| NOTE `S` does not have this field
//~| NOTE available fields are: 0, 1
//~| NOTE available fields are: `0`, `1`
match s {
S{0: a, 0x1: b, ..} => {}
//~^ ERROR does not have a field named `0x1`