rust/tests/ui/statics/issue-44373-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
192 B
Rust
Raw Normal View History

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