explain that PhantomData<&'a T> infers T: 'a
This commit is contained in:
parent
3603a84a3d
commit
3d02aa850b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue