use pin_project::pin_project; #[pin_project] pub struct Struct { #[pin] pub pinned: T, pub unpinned: U, } fn main() {}