Sign in
chromium
/
external
/
github.com
/
rust-lang
/
rust
/
d91e86e963128ebd9e0baee42d1504670dab1565
/
.
/
tests
/
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
}