]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/issue-21562.rs
Rollup merge of #106427 - mejrs:translation_errors, r=davidtwco
[rust.git] / tests / ui / consts / issue-21562.rs
1 // build-pass
2 #![allow(dead_code)]
3 #![allow(non_upper_case_globals)]
4
5 extern crate core;
6 use core::marker::Sync;
7
8 static SARRAY: [i32; 1] = [11];
9
10 struct MyStruct {
11     pub arr: *const [i32],
12 }
13 unsafe impl Sync for MyStruct {}
14
15 static mystruct: MyStruct = MyStruct {
16     arr: &SARRAY
17 };
18
19 fn main() {}