diff options
| author | Lukas Markeffsky <@> | 2022-10-04 20:27:28 +0200 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2023-05-14 16:52:08 +0200 |
| commit | 3d02aa850bdb4c475a6dcbdebf879fdd625cdab9 (patch) | |
| tree | fa3b52e175bbe9212b1ff4d9965b5c55efad5085 | |
| parent | 3603a84a3d74d0b70dbbdaa47ed8f8a306f3fe7f (diff) | |
| download | rust-3d02aa850bdb4c475a6dcbdebf879fdd625cdab9.tar.gz rust-3d02aa850bdb4c475a6dcbdebf879fdd625cdab9.zip | |
explain that `PhantomData<&'a T>` infers `T: 'a`
| -rw-r--r-- | library/core/src/marker.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index 01606086fca..47a3e78b4d5 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -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 |
