From 3d02aa850bdb4c475a6dcbdebf879fdd625cdab9 Mon Sep 17 00:00:00 2001 From: Lukas Markeffsky <@> Date: Tue, 4 Oct 2022 20:27:28 +0200 Subject: [PATCH] explain that `PhantomData<&'a T>` infers `T: 'a` --- library/core/src/marker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index 01606086fca68..47a3e78b4d5c7 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -695,7 +695,7 @@ impl !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