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
736 B
Plaintext
Raw Normal View History

2018-02-08 03:35:35 +00:00
error[E0026]: struct `Thing` does not have a field named `z`
2018-12-25 15:56:47 +00:00
--> $DIR/E0026-teach.rs:11:23
2018-02-08 03:35:35 +00:00
|
2018-02-23 00:42:32 +00:00
LL | Thing { x, y, z } => {}
| ^ struct `Thing` does not have this field
2018-02-08 03:35:35 +00: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-08 03:35:35 +00: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 1 previous error
2018-02-08 03:35:35 +00:00
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0026`.