summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/too-many-field-suggestions.stderr
blob: ac5c8cb60ccdc28e39eca401cfb9dd3c8086ffda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
error[E0599]: no method named `bar` found for struct `Thing` in the current scope
  --> $DIR/too-many-field-suggestions.rs:25:7
   |
LL | struct Thing {
   | ------------ method `bar` not found for this struct
...
LL |     t.bar();
   |       ^^^ method not found in `Thing`
   |
help: some of the expressions' fields have a method of the same name
   |
LL |     t.a0.bar();
   |       +++
LL |     t.a1.bar();
   |       +++
LL |     t.a2.bar();
   |       +++
LL |     t.a3.bar();
   |       +++
     and 6 other candidates

error[E0609]: no field `field` on type `Thing`
  --> $DIR/too-many-field-suggestions.rs:26:7
   |
LL |     t.field;
   |       ^^^^^ unknown field
   |
help: some of the expressions' fields have a field of the same name
   |
LL |     t.a0.field;
   |       +++
LL |     t.a1.field;
   |       +++
LL |     t.a2.field;
   |       +++
LL |     t.a3.field;
   |       +++
     and 6 other candidates

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0599, E0609.
For more information about an error, try `rustc --explain E0599`.