Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
static
/
static-mut-requires-unsafe.rs
blob: 413b97e431d3045b25948246086078712bb86253 [
file
] [
log
] [
blame
] [
edit
]
static
mut
a
:
isize
=
3
;
fn
main
()
{
a
+=
3
;
//~ ERROR: requires unsafe
a
=
4
;
//~ ERROR: requires unsafe
let
_b
=
a
;
//~ ERROR: requires unsafe
}