From: Mazdak Farrokhzad Date: Tue, 23 Oct 2018 03:11:31 +0000 (+0200) Subject: fix mod-static-with-const-fn.rs. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=53fe6294170e5f872877e87c1b05795b2b4d11d1;p=rust.git fix mod-static-with-const-fn.rs. --- 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() {