rust/src/test/ui/consts/const-eval/mod-static-with-const-fn.stderr

13 lines
461 B
Plaintext
Raw Normal View History

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-09-29 21:58:00 +00:00
= note: see issue #57349 <https://github.com/rust-lang/rust/issues/57349> for more information
= 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
2020-09-29 21:58:00 +00:00
For more information about this error, try `rustc --explain E0658`.