We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88da279 commit 53fe629Copy full SHA for 53fe629
src/test/ui/consts/const-eval/mod-static-with-const-fn.rs
@@ -25,11 +25,9 @@ static FOO: Foo = Foo(UnsafeCell::new(42));
25
26
static BAR: () = unsafe {
27
*FOO.0.get() = 5;
28
- //~^ ERROR calls in statics are limited to constant functions, tuple structs and tuple variants
29
-
+ //~^ ERROR statements in statics are unstable (see issue #48821)
30
// This error is caused by a separate bug that the feature gate error is reported
31
// even though the feature gate "const_let" is active.
32
- //~| statements in statics are unstable (see issue #48821)
33
};
34
35
fn main() {
0 commit comments