mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 10:19:00 +00:00
10 lines
135 B
Rust
10 lines
135 B
Rust
//@ check-pass
|
|
|
|
struct S(pub &'static u32, pub u32);
|
|
|
|
const fn g(ss: &S) -> &u32 { &ss.1 }
|
|
|
|
static T: S = S(g(&T), 0);
|
|
|
|
fn main () { }
|