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