]> git.lizzy.rs Git - rust.git/commitdiff
fix mod-static-with-const-fn.rs.
authorMazdak Farrokhzad <twingoow@gmail.com>
Tue, 23 Oct 2018 03:11:31 +0000 (05:11 +0200)
committerMazdak Farrokhzad <twingoow@gmail.com>
Sat, 10 Nov 2018 00:10:07 +0000 (01:10 +0100)
src/test/ui/consts/const-eval/mod-static-with-const-fn.rs

index d6ffca09e96d84a2717d443efac48cd384ed76e9..b6e6021aeda6dc8e3029ed8c7913c603532840af 100644 (file)
@@ -25,11 +25,9 @@ unsafe impl Sync for Foo {}
 
 static BAR: () = unsafe {
     *FOO.0.get() = 5;
-    //~^ ERROR calls in statics are limited to constant functions, tuple structs and tuple variants
-
+    //~^ ERROR statements in statics are unstable (see issue #48821)
     // This error is caused by a separate bug that the feature gate error is reported
     // even though the feature gate "const_let" is active.
-    //~| statements in statics are unstable (see issue #48821)
 };
 
 fn main() {