Sign in
fuchsia
/
third_party
/
rust
/
11a0b968c287c81680387ffcf112328d52d7e815
/
.
/
src
/
test
/
ui
/
borrowck
/
borrowck-assignment-to-static-mut.rs
blob: 72bf43da95e577100f1dca56308ad5de0fbd36cb [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
dead_code
)]
// Test taken from #45641 (https://github.com/rust-lang/rust/issues/45641)
static
mut
Y
:
u32
=
0
;
unsafe
fn
should_ok
()
{
Y
=
1
;
}
fn
main
()
{}