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