From 53fe6294170e5f872877e87c1b05795b2b4d11d1 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Tue, 23 Oct 2018 05:11:31 +0200 Subject: [PATCH] fix mod-static-with-const-fn.rs. --- src/test/ui/consts/const-eval/mod-static-with-const-fn.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/ui/consts/const-eval/mod-static-with-const-fn.rs b/src/test/ui/consts/const-eval/mod-static-with-const-fn.rs index d6ffca09e96..b6e6021aeda 100644 --- a/src/test/ui/consts/const-eval/mod-static-with-const-fn.rs +++ b/src/test/ui/consts/const-eval/mod-static-with-const-fn.rs @@ -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() { -- 2.44.0