rust/tests/ui/pattern/match-enum-struct-variant-field-missing.stderr
2025-12-09 17:29:23 +00:00

15 lines
451 B
Text

error[E0026]: variant `A::A` does not have a field named `fob`
--> $DIR/match-enum-struct-variant-field-missing.rs:12:16
|
LL | A::A { fob } => {
| ^^^ variant `A::A` does not have this field
|
help: a field with a similar name exists
|
LL - A::A { fob } => {
LL + A::A { foo } => {
|
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0026`.