]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/too-many-field-suggestions.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / too-many-field-suggestions.stderr
1 error[E0599]: no method named `bar` found for struct `Thing` in the current scope
2   --> $DIR/too-many-field-suggestions.rs:25:7
3    |
4 LL | struct Thing {
5    | ------------ method `bar` not found for this struct
6 ...
7 LL |     t.bar();
8    |       ^^^ method not found in `Thing`
9    |
10 help: some of the expressions' fields have a method of the same name
11    |
12 LL |     t.a0.bar();
13    |       +++
14 LL |     t.a1.bar();
15    |       +++
16 LL |     t.a2.bar();
17    |       +++
18 LL |     t.a3.bar();
19    |       +++
20      and 6 other candidates
21
22 error[E0609]: no field `field` on type `Thing`
23   --> $DIR/too-many-field-suggestions.rs:26:7
24    |
25 LL |     t.field;
26    |       ^^^^^ unknown field
27    |
28    = note: available fields are: `a0`, `a1`, `a2`, `a3`, `a4` ... and 5 others
29 help: some of the expressions' fields have a field of the same name
30    |
31 LL |     t.a0.field;
32    |       +++
33 LL |     t.a1.field;
34    |       +++
35 LL |     t.a2.field;
36    |       +++
37 LL |     t.a3.field;
38    |       +++
39      and 6 other candidates
40
41 error: aborting due to 2 previous errors
42
43 Some errors have detailed explanations: E0599, E0609.
44 For more information about an error, try `rustc --explain E0599`.