rust/tests/ui/consts/static_mut_containing_mut_ref2.stock.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
568 B
Plaintext
Raw Normal View History

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; };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= 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
For more information about this error, try `rustc --explain E0658`.