From da12354cef1eeadc0fc813131b81314959ef2956 Mon Sep 17 00:00:00 2001 From: wcampbell Date: Thu, 28 Dec 2023 15:32:08 -0500 Subject: [PATCH] Update trybuild for stable 1.75.0 --- tests/test_compile/cases/temp_field.stderr | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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 { .. } { + | ~~~~~~