fix PointerLike docs

This commit is contained in:
Lukas Markeffsky 2024-12-20 17:37:34 +01:00
parent 971a4f2d3b
commit 159dba89ef

View File

@ -982,8 +982,8 @@ pub trait Tuple {}
/// A marker for pointer-like types. /// A marker for pointer-like types.
/// ///
/// All types that have the same size and alignment as a `usize` or /// This trait can only be implemented for types that have the same size and alignment
/// `*const ()` automatically implement this trait. /// as a `usize` or `*const ()`.
#[unstable(feature = "pointer_like_trait", issue = "none")] #[unstable(feature = "pointer_like_trait", issue = "none")]
#[lang = "pointer_like"] #[lang = "pointer_like"]
#[diagnostic::on_unimplemented( #[diagnostic::on_unimplemented(