]> git.lizzy.rs Git - rust.git/blob - src/test/ui/did_you_mean/issue-42599_available_fields_note.stderr
Rollup merge of #101388 - compiler-errors:issue-101376, r=fee1-dead
[rust.git] / src / test / ui / did_you_mean / issue-42599_available_fields_note.stderr
1 error[E0560]: struct `Demo` has no field named `inocently_mispellable`
2   --> $DIR/issue-42599_available_fields_note.rs:16:39
3    |
4 LL |             Self { secret_integer: 2, inocently_mispellable: () }
5    |                                       ^^^^^^^^^^^^^^^^^^^^^ help: a field with a similar name exists: `innocently_misspellable`
6
7 error[E0560]: struct `Demo` has no field named `egregiously_nonexistent_field`
8   --> $DIR/issue-42599_available_fields_note.rs:21:39
9    |
10 LL |             Self { secret_integer: 3, egregiously_nonexistent_field: () }
11    |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Demo` does not have this field
12    |
13    = note: available fields are: `favorite_integer`, `secret_integer`, `innocently_misspellable`, `another_field`, `yet_another_field` ... and 2 others
14
15 error[E0609]: no field `inocently_mispellable` on type `Demo`
16   --> $DIR/issue-42599_available_fields_note.rs:32:41
17    |
18 LL |     let innocent_field_misaccess = demo.inocently_mispellable;
19    |                                         ^^^^^^^^^^^^^^^^^^^^^ help: a field with a similar name exists: `innocently_misspellable`
20
21 error[E0609]: no field `egregiously_nonexistent_field` on type `Demo`
22   --> $DIR/issue-42599_available_fields_note.rs:35:42
23    |
24 LL |     let egregious_field_misaccess = demo.egregiously_nonexistent_field;
25    |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unknown field
26    |
27    = note: available fields are: `favorite_integer`, `innocently_misspellable`
28
29 error: aborting due to 4 previous errors
30
31 Some errors have detailed explanations: E0560, E0609.
32 For more information about an error, try `rustc --explain E0560`.