fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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