]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const-region-ptrs-noncopy.rs
Merge branch 'debian/sid' into debian/experimental
[rustc.git] / src / test / ui / consts / const-region-ptrs-noncopy.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(dead_code)]
b7449926 3#![allow(non_upper_case_globals)]
c34b1796 4
1a4d82fc 5type Big = [u64; 8];
c34b1796 6struct Pair<'a> { a: isize, b: &'a Big }
1a4d82fc
JJ
7const x: &'static Big = &([13, 14, 10, 13, 11, 14, 14, 15]);
8const y: &'static Pair<'static> = &Pair {a: 15, b: x};
223e47cc
LB
9
10pub fn main() {
1a4d82fc 11 assert_eq!(x as *const Big, y.b as *const Big);
223e47cc 12}