2019-10-28 19:00:00 -05:00
|
|
|
// build-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2018-08-31 08:02:01 -05:00
|
|
|
#![allow(non_upper_case_globals)]
|
|
|
|
|
2015-05-05 16:56:30 -05:00
|
|
|
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() {}
|