]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/check-static-values-constraints.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / check-static-values-constraints.rs
index eb4ecd8baca965e97ecc4d5fc75c291f7021a2b3..f6a577d0d9c934aca8ae792ef43668a8cbb40877 100644 (file)
@@ -63,7 +63,7 @@ struct SafeStruct {
 // This example should fail because field1 in the base struct is not safe
 static STATIC9: SafeStruct = SafeStruct{field1: SafeEnum::Variant1,
                                         ..SafeStruct{field1: SafeEnum::Variant3(WithDtor),
-//~^ ERROR destructors cannot be evaluated at compile-time
+//~^ ERROR destructor of
                                                      field2: SafeEnum::Variant1}};
 
 struct UnsafeStruct;