blob: 87d97e436c56293cbc5bf6c6b537b5725353c3e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//@ build-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() {}
|