2020-09-29 21:58:00 +00:00
|
|
|
error[E0658]: mutation through a reference is not allowed in statics
|
2020-09-30 01:32:38 +00:00
|
|
|
--> $DIR/mod-static-with-const-fn.rs:16:5
|
2018-11-24 13:38:31 +00:00
|
|
|
|
|
|
|
|
LL | *FOO.0.get() = 5;
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
2020-05-04 21:33:10 +00:00
|
|
|
|
|
2020-09-29 21:58:00 +00:00
|
|
|
= note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
|
2020-05-04 21:33:10 +00:00
|
|
|
= help: add `#![feature(const_mut_refs)]` to the crate attributes to enable
|
2018-11-24 13:38:31 +00:00
|
|
|
|
2020-09-29 21:58:00 +00:00
|
|
|
error: aborting due to previous error
|
2018-09-12 04:27:28 +00:00
|
|
|
|
2020-09-29 21:58:00 +00:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|