Sign in
fuchsia
/
third_party
/
rust
/
2bde39b8edce6463e1c37f8a8082a875e7b536b1
/
.
/
src
/
test
/
ui
/
consts
/
static_mut_containing_mut_ref2.rs
blob: aeb69b2652cbf7d2209fe5feec884fc3b73fddec [
file
] [
log
] [
blame
]
#![
feature
(
const_let
)]
static
mut
STDERR_BUFFER_SPACE
:
u8
=
0
;
pub
static
mut
STDERR_BUFFER
:
()
=
unsafe
{
*(&
mut
STDERR_BUFFER_SPACE
)
=
42
;
};
//~^ ERROR references in statics may only refer to immutable values
fn
main
()
{}