explain that PhantomData<&'a T>
infers T: 'a
This commit is contained in:
parent
3603a84a3d
commit
3d02aa850b
@ -695,7 +695,7 @@ impl<T: ?Sized> !Sync for *mut T {}
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// This also in turn requires the annotation `T: 'a`, indicating
|
||||
/// This also in turn infers the lifetime bound `T: 'a`, indicating
|
||||
/// that any references in `T` are valid over the lifetime `'a`.
|
||||
///
|
||||
/// When initializing a `Slice` you simply provide the value
|
||||
|
Loading…
x
Reference in New Issue
Block a user