]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-47789.rs
Rollup merge of #107023 - scottmcm:stop-shouting, r=Nilstrieb
[rust.git] / tests / ui / consts / issue-47789.rs
1 // check-pass
2 #![allow(non_upper_case_globals)]
3
4 static mut x: &'static u32 = &0;
5
6 fn foo() {
7     unsafe { x = &1; }
8 }
9
10 fn main() { }