Searched refs:WrapperWithLifetime (Results 1 – 3 of 3) sorted by relevance
/external/rust/crates/pin-project/tests/ui/unstable-features/ |
D | trivial_bounds-feature-gate.rs | 18 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
|
D | trivial_bounds-bug.rs | 23 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 {}
|
D | trivial_bounds.rs | 25 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()
|