rust/tests/ui/error-codes/E0026-teach.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
734 B
Plaintext
Raw Normal View History

2018-02-07 19:35:35 -08:00
error[E0026]: struct `Thing` does not have a field named `z`
2018-12-25 08:56:47 -07:00
--> $DIR/E0026-teach.rs:11:23
2018-02-07 19:35:35 -08:00
|
2018-02-23 03:42:32 +03:00
LL | Thing { x, y, z } => {}
| ^ struct `Thing` does not have this field
2018-02-07 19:35:35 -08:00
|
= note: This error indicates that a struct pattern attempted to extract a nonexistent field from a struct. Struct fields are identified by the name used before the colon : so struct patterns should resemble the declaration of the struct type being matched.
2018-02-07 19:35:35 -08:00
If you are using shorthand field patterns but want to refer to the struct field by a different name, you should rename it explicitly.
error: aborting due to previous error
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0026`.