2021-01-03 18:46:20 +00:00
|
|
|
error[E0658]: mutable references are not allowed in statics
|
2019-11-28 11:57:34 -05:00
|
|
|
--> $DIR/static_mut_containing_mut_ref2.rs:7:46
|
2018-12-17 14:20:42 +01:00
|
|
|
|
|
|
|
|
LL | pub static mut STDERR_BUFFER: () = unsafe { *(&mut STDERR_BUFFER_SPACE) = 42; };
|
2021-01-03 18:46:20 +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-12-17 14:20:42 +01:00
|
|
|
|
2020-09-29 14:58:00 -07:00
|
|
|
error: aborting due to previous error
|
2018-12-17 14:20:42 +01:00
|
|
|
|
2021-01-03 18:46:20 +00:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|