mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-30 22:12:15 +00:00
13 lines
318 B
Rust
13 lines
318 B
Rust
//@ run-pass
|
|
#![allow(dead_code)]
|
|
#![allow(non_upper_case_globals)]
|
|
|
|
type Big = [u64; 8];
|
|
struct Pair<'a> { a: isize, b: &'a Big }
|
|
const x: &'static Big = &([13, 14, 10, 13, 11, 14, 14, 15]);
|
|
const y: &'static Pair<'static> = &Pair {a: 15, b: x};
|
|
|
|
pub fn main() {
|
|
assert_eq!(x as *const Big, y.b as *const Big);
|
|
}
|