blob: 3b7b1089c29ef169b6d2550599cfbc56a3be93bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//@ 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() {}
|