mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
20 lines
302 B
Rust
20 lines
302 B
Rust
//@ 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() {}
|