diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-10-23 05:11:31 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-11-10 01:10:07 +0100 |
| commit | 53fe6294170e5f872877e87c1b05795b2b4d11d1 (patch) | |
| tree | 10d5e11e50aa3dbd56b34d94b150a316d7f7bf3d | |
| parent | 88da279e45bf3bb245f5408ce45578e72818d30e (diff) | |
| download | rust-53fe6294170e5f872877e87c1b05795b2b4d11d1.tar.gz rust-53fe6294170e5f872877e87c1b05795b2b4d11d1.zip | |
fix mod-static-with-const-fn.rs.
| -rw-r--r-- | src/test/ui/consts/const-eval/mod-static-with-const-fn.rs | 4 |
1 files changed, 1 insertions, 3 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 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 @@ 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() { |
