diff --git a/tests/test_compile/cases/temp_field.stderr b/tests/test_compile/cases/temp_field.stderr index f19994d1..86b0716d 100644 --- a/tests/test_compile/cases/temp_field.stderr +++ b/tests/test_compile/cases/temp_field.stderr @@ -6,18 +6,14 @@ error[E0063]: missing field `field_a` in initializer of `Test1` | = note: this error originates in the derive macro `DekuRead` (in Nightly builds, run with -Z macro-backtrace for more info) -error[E0027]: pattern does not mention field `field_a` +error: pattern requires `..` due to inaccessible fields --> $DIR/temp_field.rs:4:20 | 4 | #[derive(DekuRead, DekuWrite)] - | ^^^^^^^^^ missing field `field_a` + | ^^^^^^^^^ | = note: this error originates in the derive macro `DekuWrite` (in Nightly builds, run with -Z macro-backtrace for more info) -help: include the missing field in the pattern +help: ignore the inaccessible and unused fields | -4 | #[derive(DekuRead, DekuWrite { field_a })] - | +++++++++++ -help: if you don't care about this missing field, you can explicitly ignore it - | -4 | #[derive(DekuRead, DekuWrite { .. })] - | ++++++ +4 | #[derive(DekuRead, DekuWrite { .. } { + | ~~~~~~