]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![allow(dead_code)] |
b7449926 | 3 | #![allow(non_upper_case_globals)] |
c34b1796 | 4 | |
1a4d82fc | 5 | type Big = [u64; 8]; |
c34b1796 | 6 | struct Pair<'a> { a: isize, b: &'a Big } |
1a4d82fc JJ |
7 | const x: &'static Big = &([13, 14, 10, 13, 11, 14, 14, 15]); |
8 | const y: &'static Pair<'static> = &Pair {a: 15, b: x}; | |
223e47cc LB |
9 | |
10 | pub fn main() { | |
1a4d82fc | 11 | assert_eq!(x as *const Big, y.b as *const Big); |
223e47cc | 12 | } |