explain that PhantomData<&'a T> infers T: 'a

This commit is contained in:
Lukas Markeffsky 2022-10-04 20:27:28 +02:00
parent 3603a84a3d
commit 3d02aa850b

View File

@ -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