Skip to content

Commit

Permalink
fix mod-static-with-const-fn.rs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Nov 10, 2018
1 parent 88da279 commit 53fe629
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/test/ui/consts/const-eval/mod-static-with-const-fn.rs
Expand Up @@ -25,11 +25,9 @@ static FOO: Foo = Foo(UnsafeCell::new(42));

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() {
Expand Down

0 comments on commit 53fe629

Please sign in to comment.