use pinned_init::*; struct Foo { a: usize, } impl Foo { fn new() -> impl PinInit { pin_init!(Self { a: 42 }) } } fn main() {}