about summary refs log tree commit diff
path: root/tests/ui/consts/issue-13837.rs
blob: 85e278539b2bcda5fabe40c29f6511b5cb396549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-pass
#![allow(dead_code)]

struct TestStruct {
    x: *const [isize; 2]
}

unsafe impl Sync for TestStruct {}

static TEST_VALUE : TestStruct = TestStruct{x: 0x1234 as *const [isize; 2]};

fn main() {}