Sha256: 23c7e081d86f2000838c32844dce1eee98d1b118eb1a29daf65c705aad5c68fb
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
// SPDX-License-Identifier: Apache-2.0 OR MIT use pin_project_lite::pin_project; pin_project! { #[project(!Unpin)] struct Foo<T, U> { #[pin] f1: T, f2: U, } } impl<T, U> Unpin for Foo<T, U> where T: Unpin {} pin_project! { #[project(!Unpin)] struct Bar<T, U> { #[pin] f1: T, f2: U, } } impl<T, U> Unpin for Bar<T, U> {} pin_project! { #[project(!Unpin)] struct Baz<T, U> { #[pin] f1: T, f2: U, } } impl<T: Unpin, U: Unpin> Unpin for Baz<T, U> {} fn main() {}
Version data entries
2 entries across 2 versions & 1 rubygems