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:
parent
bf7e91f61d
commit
2dbfa3995e
11 changed files with 46 additions and 29 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue