Home
last modified time | relevance | path

Searched refs:WrapperWithLifetime (Results 1 – 3 of 3) sorted by relevance

/external/rust/crates/pin-project/tests/ui/unstable-features/
Dtrivial_bounds-feature-gate.rs18 struct WrapperWithLifetime<'a, T>(PhantomData<&'a ()>, T); struct
20 impl<T> Unpin for WrapperWithLifetime<'_, T> where T: Unpin {} implementation
24 impl<'a> Unpin for C where WrapperWithLifetime<'a, PhantomPinned>: Unpin {} // Ok
44 struct WrapperWithLifetime<'a, T>(PhantomData<&'a ()>, T); struct
46 impl<T> Unpin for WrapperWithLifetime<'_, T> where T: Unpin {} implementation
50 impl<'a> Unpin for C where WrapperWithLifetime<'a, Inner>: Unpin {} // Ok
Dtrivial_bounds-bug.rs23 struct WrapperWithLifetime<'a, T>(PhantomData<&'a ()>, T); struct
25 impl<T> Unpin for WrapperWithLifetime<'_, T> where T: Unpin {} implementation
30 impl<'a> Unpin for C where WrapperWithLifetime<'a, PhantomPinned>: Unpin {}
Dtrivial_bounds.rs25 struct WrapperWithLifetime<'a, T>(PhantomData<&'a ()>, T); in inner() struct
27 impl<T> Unpin for WrapperWithLifetime<'_, T> where T: Unpin {} in inner() implementation
31 impl<'a> Unpin for C where WrapperWithLifetime<'a, Inner>: Unpin {} // Ok in inner()