13 lines
232 B
Rust
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() {}
|