]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/non-existent-field-present-in-subfield.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / non-existent-field-present-in-subfield.stderr
1 error[E0609]: no field `c` on type `Foo`
2   --> $DIR/non-existent-field-present-in-subfield.rs:37:24
3    |
4 LL |     let _test = &fooer.c;
5    |                        ^ unknown field
6    |
7    = note: available fields are: `first`, `_second`, `_third`
8 help: one of the expressions' fields has a field of the same name
9    |
10 LL |     let _test = &fooer.first.bar.c;
11    |                        ++++++++++
12
13 error[E0609]: no field `test` on type `Foo`
14   --> $DIR/non-existent-field-present-in-subfield.rs:40:24
15    |
16 LL |     let _test2 = fooer.test;
17    |                        ^^^^ unknown field
18    |
19    = note: available fields are: `first`, `_second`, `_third`
20 help: one of the expressions' fields has a field of the same name
21    |
22 LL |     let _test2 = fooer.first.bar.c.test;
23    |                        ++++++++++++
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0609`.