rust/tests/ui/pattern/match-enum-struct-variant-field-missing.stderr
reddevilmidzy 941a17a15a Relocate 5 tests from tests/ui/issues
Relocate issues/issue-51154.rs to closures/box-generic-closure.rs

Relocate issues/issue-51515.rs to
borrowck/assignment-to-immutable-ref.rs

Relocate issues/issue-53348.rs to mismatched_types/deref-string-assign.rs

Relocate issues/issue-52717.rs to
pattern/match-enum-struct-variant-field-missing.rs

Relocate issues/issue-53300.rs to
type/cannot-find-wrapper-with-impl-trait.rs
2025-11-27 00:39:52 +09:00

12 lines
443 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: `foo`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0026`.