Rollup merge of #102673 - lukas-code:infered-lifetimes, r=ehuss

Update doc for `PhantomData` to match code example

After https://github.com/rust-lang/rust/pull/106621, there is no longer a `T: 'a` annotation in the doc example, so update the text to match the code.
This commit is contained in:
Matthias Krüger 2023-05-15 10:58:39 +02:00 committed by GitHub
commit 28bc8745ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`. /// that any references in `T` are valid over the lifetime `'a`.
/// ///
/// When initializing a `Slice` you simply provide the value /// When initializing a `Slice` you simply provide the value