Skip to content

Commit

Permalink
explain that PhantomData<&'a T> infers T: 'a
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Markeffsky committed May 14, 2023
1 parent 3603a84 commit 3d02aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d02aa8

Please sign in to comment.