diff options
Diffstat (limited to 'tests/ui/consts/miri_unleashed/auxiliary')
-rw-r--r-- | tests/ui/consts/miri_unleashed/auxiliary/static_cross_crate.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/consts/miri_unleashed/auxiliary/static_cross_crate.rs b/tests/ui/consts/miri_unleashed/auxiliary/static_cross_crate.rs new file mode 100644 index 000000000..4fc6ae66a --- /dev/null +++ b/tests/ui/consts/miri_unleashed/auxiliary/static_cross_crate.rs @@ -0,0 +1,3 @@ +pub static mut ZERO: [u8; 1] = [0]; +pub static ZERO_REF: &[u8; 1] = unsafe { &ZERO }; +pub static mut OPT_ZERO: Option<u8> = Some(0); |