Sha256: 1e70055fbec4bc0a53454fd93a0663f8785440d37dcf359ab29958d97fd51e9d
Contents?: true
Size: 517 Bytes
Versions: 4
Compression:
Stored size: 517 Bytes
Contents
// SPDX-License-Identifier: Apache-2.0 OR MIT // https://github.com/taiki-e/pin-project/issues/340#issuecomment-2428002670 pin_project_lite::pin_project! { struct Foo<Pinned, Unpinned> { #[pin] pinned: Pinned, unpinned: Unpinned, } } struct MyPhantomPinned(::core::marker::PhantomPinned); impl Unpin for MyPhantomPinned where for<'cursed> str: Sized {} impl Unpin for Foo<MyPhantomPinned, ()> {} fn is_unpin<T: Unpin>() {} fn main() { is_unpin::<Foo<MyPhantomPinned, ()>>() }
Version data entries
4 entries across 4 versions & 1 rubygems