about summary refs log tree commit diff
path: root/src/test/ui/check-static-values-constraints.rs
diff options
context:
space:
mode:
authorDeadbeef <ent3rm4n@gmail.com>2022-09-23 14:22:36 +0000
committerDeadbeef <ent3rm4n@gmail.com>2022-09-24 20:32:51 +0000
commit2ce1cd511f0d1152054936def739184b20c0e64f (patch)
treec27515a4409b1238b135d58fe487ef87242c2db1 /src/test/ui/check-static-values-constraints.rs
parent4d44e09cb1db2788f59159c4b9055e339ed2181d (diff)
downloadrust-2ce1cd511f0d1152054936def739184b20c0e64f.tar.gz
rust-2ce1cd511f0d1152054936def739184b20c0e64f.zip
Note the type when unable to drop values in compile time
Diffstat (limited to 'src/test/ui/check-static-values-constraints.rs')
-rw-r--r--src/test/ui/check-static-values-constraints.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/check-static-values-constraints.rs b/src/test/ui/check-static-values-constraints.rs
index eb4ecd8baca..f6a577d0d9c 100644
--- a/src/test/ui/check-static-values-constraints.rs
+++ b/src/test/ui/check-static-values-constraints.rs
@@ -63,7 +63,7 @@ static STATIC8: SafeStruct = SafeStruct{field1: SafeEnum::Variant1,
 // 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;