//@ check-pass pub struct S T = fn() -> T> { f: F, x: Option, } impl T> S { pub const fn new(f: F) -> Self { Self { f, x: None } } } #[derive(Default)] pub struct Foo; static LOCKED_CALLSITES: S = S::new(Default::default); fn main() {}