Skip to content

Commit 3d02aa8

Browse files
author
Lukas Markeffsky
committed
explain that PhantomData<&'a T> infers T: 'a
1 parent 3603a84 commit 3d02aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/marker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ impl<T: ?Sized> !Sync for *mut T {}
695695
/// }
696696
/// ```
697697
///
698-
/// This also in turn requires the annotation `T: 'a`, indicating
698+
/// This also in turn infers the lifetime bound `T: 'a`, indicating
699699
/// that any references in `T` are valid over the lifetime `'a`.
700700
///
701701
/// When initializing a `Slice` you simply provide the value

0 commit comments

Comments
 (0)