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