Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 338 Bytes
// build-pass (FIXME(62277): could be check-pass?)
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() {}
You can’t perform that action at this time.