]> git.lizzy.rs Git - rust.git/blob - src/test/ui/static/static-extern-type.rs
Rollup merge of #105970 - Ezrashaw:add-docs+test-e0462, r=GuillaumeGomez
[rust.git] / src / test / ui / static / static-extern-type.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2 #![feature(extern_types)]
3
4 pub mod a {
5     extern "C" {
6         pub type StartFn;
7         pub static start: StartFn;
8     }
9 }
10
11 pub mod b {
12     #[repr(transparent)]
13     pub struct TransparentType(::a::StartFn);
14     extern "C" {
15         pub static start: TransparentType;
16     }
17 }
18
19 pub mod c {
20     #[repr(C)]
21     pub struct CType(u32, ::b::TransparentType);
22     extern "C" {
23         pub static start: CType;
24     }
25 }
26
27 fn main() {}