use pin_project_lite::pin_project; pin_project! { #[project_ref = StructProjRef] struct Struct { #[pin] pinned: T, unpinned: U, } } fn main() {}