1 use pin_project_lite::pin_project; 2 3 pin_project! { 4 #[project = EnumProj] 5 #[project_ref = EnumProjRef] 6 #[project_replace = EnumProjReplace] 7 enum Enum<T, U> { 8 Struct { 9 #[pin] 10 pinned: T, 11 unpinned: U, 12 }, 13 Unit, 14 } 15 } 16 main()17 fn main() {} 18