diff options
Diffstat (limited to 'tests/ui/statics/issue-15261.rs')
-rw-r--r-- | tests/ui/statics/issue-15261.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/statics/issue-15261.rs b/tests/ui/statics/issue-15261.rs new file mode 100644 index 000000000..ec413f6d1 --- /dev/null +++ b/tests/ui/statics/issue-15261.rs @@ -0,0 +1,11 @@ +// build-pass +#![allow(dead_code)] +#![allow(non_upper_case_globals)] + +// pretty-expanded FIXME #23616 + +static mut n_mut: usize = 0; + +static n: &'static usize = unsafe{ &n_mut }; + +fn main() {} |