mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
explain that PhantomData<&'a T> infers T: 'a
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user