mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
12 lines
185 B
Rust
12 lines
185 B
Rust
//@ 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() {}
|