rust/src/test/ui/issues/issue-44373-2.rs
2018-12-25 21:08:33 -07:00

13 lines
232 B
Rust

// compile-pass
#![allow(dead_code)]
// compile-flags: -Z borrowck=compare
struct Foo(bool);
struct Container(&'static [&'static Foo]);
static FOO: Foo = Foo(true);
static CONTAINER: Container = Container(&[&FOO]);
fn main() {}