]> git.lizzy.rs Git - rust.git/blob - tests/ui/statics/issue-44373-2.rs
Auto merge of #106825 - weihanglo:update-cargo, r=weihanglo
[rust.git] / tests / ui / statics / issue-44373-2.rs
1 // check-pass
2 #![allow(dead_code)]
3
4 struct Foo(bool);
5
6 struct Container(&'static [&'static Foo]);
7
8 static FOO: Foo = Foo(true);
9 static CONTAINER: Container = Container(&[&FOO]);
10
11 fn main() {}