]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-assignment-to-static-mut.rs
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / 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() {}