]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/check-static-values-constraints.rs
Rollup merge of #94577 - RalfJung:simd-miri, r=scottmcm
[rust.git] / src / test / ui / check-static-values-constraints.rs
index 3d1b5a08227569652484309536d72ce709932b4b..eb4ecd8baca965e97ecc4d5fc75c291f7021a2b3 100644 (file)
@@ -87,7 +87,7 @@ fn drop(&mut self) {}
 static mut STATIC14: SafeStruct = SafeStruct {
     field1: SafeEnum::Variant1,
     field2: SafeEnum::Variant4("str".to_string())
-//~^ ERROR calls in statics are limited to constant functions
+//~^ ERROR cannot call non-const fn
 };
 
 static STATIC15: &'static [Box<MyOwned>] = &[