blob: e31316d0709b0b8c08bf3fc89a9c8cb79ec10f66 [file] [log] [blame]
// compile-pass
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
extern crate core;
use core::marker::Sync;
static SARRAY: [i32; 1] = [11];
struct MyStruct {
pub arr: *const [i32],
}
unsafe impl Sync for MyStruct {}
static mystruct: MyStruct = MyStruct {
arr: &SARRAY
};
fn main() {}