1 use pin_project::pin_project; 2 3 #[pin_project(project_replace)] 4 struct Struct<T, U> { 5 #[pin] 6 pinned1: T, 7 #[pin] 8 pinned2: T, 9 unpinned1: U, 10 unpinned2: U, 11 } 12 main()13 fn main() {} 14