]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-assignment-to-static-mut.rs
Merge commit 'e36a20c24f35a4cee82bbdc600289104c9237c22' into ra-sync-and-pms-component
[rust.git] / src / test / ui / borrowck / borrowck-assignment-to-static-mut.rs
1 // run-pass
2 #![allow(dead_code)]
3 // Test taken from #45641 (https://github.com/rust-lang/rust/issues/45641)
4
5 static mut Y: u32 = 0;
6
7 unsafe fn should_ok() {
8     Y = 1;
9 }
10
11 fn main() {}