Sign in
android
/
toolchain
/
rustc
/
59fbe18bc79ed87d0c5f02705e7cf19e402e1f2b
/
.
/
src
/
test
/
ui
/
static
/
static-mut-foreign-requires-unsafe.rs
blob: 90aa2537a82bb8add04bcfdb5cc46e0ccc17c5cc [
file
] [
log
] [
blame
]
extern
"C"
{
static
mut
a
:
i32
;
}
fn
main
()
{
a
+=
3
;
//~ ERROR: requires unsafe
a
=
4
;
//~ ERROR: requires unsafe
let
_b
=
a
;
//~ ERROR: requires unsafe
}