From 53947ad906301aa1509baa58ff663fa496b8c56a 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` --- core/src/marker.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/marker.rs b/core/src/marker.rs index 01606086f..47a3e78b4 100644 --- a/core/src/marker.rs +++ b/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