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