]>
Commit | Line | Data |
---|---|---|
ed00b5ec FG |
1 | error[E0560]: struct `Crate` has no field named `fiel` |
2 | --> $DIR/dont-suggest-hygienic-fields.rs:44:34 | |
3 | | | |
4 | LL | environment!(); | |
5 | | -------------- in this macro invocation | |
6 | ... | |
7 | LL | const CRATE: Crate = Crate { fiel: () }; | |
4b012472 | 8 | | ^^^^ unknown field |
ed00b5ec FG |
9 | | |
10 | = note: this error originates in the macro `environment` (in Nightly builds, run with -Z macro-backtrace for more info) | |
4b012472 FG |
11 | help: a field with a similar name exists |
12 | | | |
13 | LL | const CRATE: Crate = Crate { field: () }; | |
14 | | ~~~~~ | |
ed00b5ec FG |
15 | |
16 | error[E0609]: no field `field` on type `Compound` | |
17 | --> $DIR/dont-suggest-hygienic-fields.rs:24:16 | |
18 | | | |
19 | LL | let _ = ty.field; | |
20 | | ^^^^^ unknown field | |
21 | ||
22 | error[E0609]: no field `fieeld` on type `Compound` | |
23 | --> $DIR/dont-suggest-hygienic-fields.rs:25:16 | |
24 | | | |
25 | LL | let _ = ty.fieeld; | |
26 | | ^^^^^^ unknown field | |
27 | ||
28 | error[E0026]: struct `Compound` does not have a field named `field` | |
29 | --> $DIR/dont-suggest-hygienic-fields.rs:27:20 | |
30 | | | |
31 | LL | let Compound { field } = ty; | |
32 | | ^^^^^ struct `Compound` does not have this field | |
33 | ||
34 | error: pattern requires `..` due to inaccessible fields | |
35 | --> $DIR/dont-suggest-hygienic-fields.rs:27:9 | |
36 | | | |
37 | LL | let Compound { field } = ty; | |
38 | | ^^^^^^^^^^^^^^^^^^ | |
39 | | | |
40 | help: ignore the inaccessible and unused fields | |
41 | | | |
42 | LL | let Compound { field, .. } = ty; | |
43 | | ++++ | |
44 | ||
45 | error[E0609]: no field `0` on type `Component` | |
46 | --> $DIR/dont-suggest-hygienic-fields.rs:34:16 | |
47 | | | |
48 | LL | let _ = ty.0; | |
49 | | ^ unknown field | |
50 | ||
51 | error: aborting due to 6 previous errors | |
52 | ||
53 | Some errors have detailed explanations: E0026, E0560, E0609. | |
54 | For more information about an error, try `rustc --explain E0026`. |