2018-11-24 14:38:31 +01:00
|
|
|
error[E0019]: static contains unimplemented expression type
|
2018-12-28 20:05:22 +01:00
|
|
|
--> $DIR/mod-static-with-const-fn.rs:18:5
|
2018-11-24 14:38:31 +01:00
|
|
|
|
|
|
|
|
LL | *FOO.0.get() = 5;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2020-05-04 23:33:10 +02:00
|
|
|
|
|
|
|
|
= help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
|
2018-11-24 14:38:31 +01:00
|
|
|
|
2018-11-10 02:36:19 +01:00
|
|
|
error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants
|
2018-12-28 20:05:22 +01:00
|
|
|
--> $DIR/mod-static-with-const-fn.rs:21:5
|
2018-11-10 02:36:19 +01:00
|
|
|
|
|
|
|
|
LL | foo();
|
|
|
|
| ^^^^^
|
|
|
|
|
2018-11-24 14:38:31 +01:00
|
|
|
error: aborting due to 2 previous errors
|
2018-09-12 12:27:28 +08:00
|
|
|
|
2019-04-17 13:26:38 -04:00
|
|
|
Some errors have detailed explanations: E0015, E0019.
|
2018-11-24 14:38:31 +01:00
|
|
|
For more information about an error, try `rustc --explain E0015`.
|