2018-09-12 12:27:28 +08:00
|
|
|
error[E0658]: statements in statics are unstable (see issue #48821)
|
2018-11-10 02:36:19 +01:00
|
|
|
--> $DIR/mod-static-with-const-fn.rs:29:5
|
2018-09-12 12:27:28 +08:00
|
|
|
|
|
|
|
|
LL | *FOO.0.get() = 5;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: add #![feature(const_let)] to the crate attributes to enable
|
|
|
|
|
2018-11-10 02:36:19 +01:00
|
|
|
error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
|
|
|
|
--> $DIR/mod-static-with-const-fn.rs:34:5
|
|
|
|
|
|
|
|
|
LL | foo();
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-09-12 12:27:28 +08:00
|
|
|
|
2018-11-10 02:36:19 +01:00
|
|
|
Some errors occurred: E0015, E0658.
|
|
|
|
For more information about an error, try `rustc --explain E0015`.
|