]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/mod-static-with-const-fn.stderr
8eaed1dcab116b099a8d952bd4475e17c0ec73f7
[rust.git] / src / test / ui / consts / const-eval / mod-static-with-const-fn.stderr
1 error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
2   --> $DIR/mod-static-with-const-fn.rs:27:6
3    |
4 LL |     *FOO.0.get() = 5;
5    |      ^^^^^^^^^^^
6
7 error[E0658]: statements in statics are unstable (see issue #48821)
8   --> $DIR/mod-static-with-const-fn.rs:27:5
9    |
10 LL |     *FOO.0.get() = 5;
11    |     ^^^^^^^^^^^^^^^^
12    |
13    = help: add #![feature(const_let)] to the crate attributes to enable
14
15 error: aborting due to 2 previous errors
16
17 Some errors occurred: E0015, E0658.
18 For more information about an error, try `rustc --explain E0015`.