Sign in
fuchsia
/
third_party
/
rust
/
2fcea9fb68c8e04f10e5cb15bbfb486de9800afa
/
.
/
tests
/
ui
/
consts
/
static_mut_containing_mut_ref2.rs
blob: e9910816fc12f963bd53ab4fa8261800b7120e71 [
file
] [
log
] [
blame
]
#![
allow
(
static_mut_refs
)]
static
mut
STDERR_BUFFER_SPACE
:
u8
=
0
;
pub
static
mut
STDERR_BUFFER
:
()
=
unsafe
{
*(&
mut
STDERR_BUFFER_SPACE
)
=
42
;
//~^ ERROR modifying a static's initial value
};
fn
main
()
{}