summaryrefslogtreecommitdiffstats
path: root/src/test/ui/statics/issue-44373-2.rs
blob: 194ce1dca778913eb8eff173aa3e8ddb9fa539e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
// 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() {}