rust/src/test/ui/issues/issue-34194.rs

12 lines
149 B
Rust
Raw Normal View History

// build-pass
2016-06-18 13:05:44 -05:00
#![allow(dead_code)]
struct A {
a: &'static (),
}
static B: &'static A = &A { a: &() };
static C: &'static A = &B;
fn main() {}