// SPDX-License-Identifier: Apache-2.0 OR MIT use pin_project_lite::pin_project; pin_project! { #[project(!Unpin)] struct Foo { #[pin] f1: T, f2: U, } } impl Unpin for Foo where T: Unpin {} pin_project! { #[project(!Unpin)] struct Bar { #[pin] f1: T, f2: U, } } impl Unpin for Bar {} pin_project! { #[project(!Unpin)] struct Baz { #[pin] f1: T, f2: U, } } impl Unpin for Baz {} fn main() {}