Skip to content

Commit 53fe629

Browse files
committed
fix mod-static-with-const-fn.rs.
1 parent 88da279 commit 53fe629

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/ui/consts/const-eval/mod-static-with-const-fn.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@ static FOO: Foo = Foo(UnsafeCell::new(42));
2525

2626
static BAR: () = unsafe {
2727
*FOO.0.get() = 5;
28-
//~^ ERROR calls in statics are limited to constant functions, tuple structs and tuple variants
29-
28+
//~^ ERROR statements in statics are unstable (see issue #48821)
3029
// This error is caused by a separate bug that the feature gate error is reported
3130
// even though the feature gate "const_let" is active.
32-
//~| statements in statics are unstable (see issue #48821)
3331
};
3432

3533
fn main() {

0 commit comments

Comments
 (0)