summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-eval/issue-47971.rs
blob: b98e76031d4f300434acd1500144e6d5edae2fdb (plain)
1
2
3
4
5
6
7
8
9
// 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 () { }