diff options
Diffstat (limited to 'src/test/ui/consts/const-eval/mod-static-with-const-fn.rs')
| -rw-r--r-- | src/test/ui/consts/const-eval/mod-static-with-const-fn.rs | 5 |
1 files changed, 1 insertions, 4 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 4136a7b6a72..600931e49a0 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 @@ -9,7 +9,7 @@ // except according to those terms. // New test for #53818: modifying static memory at compile-time is not allowed. -// The test should never succeed. +// The test should never compile successfully #![feature(const_raw_ptr_deref)] #![feature(const_let)] @@ -27,9 +27,6 @@ fn foo() {} static BAR: () = unsafe { *FOO.0.get() = 5; - //~^ 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. foo(); //~^ ERROR calls in statics are limited to constant functions, tuple structs and tuple variants |
