We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PointerLike
1 parent bad2aa4 commit 6e1196eCopy full SHA for 6e1196e
library/core/src/marker.rs
@@ -972,8 +972,8 @@ pub trait Tuple {}
972
973
/// A marker for pointer-like types.
974
///
975
-/// All types that have the same size and alignment as a `usize` or
976
-/// `*const ()` automatically implement this trait.
+/// This trait may only be implemented for types that have the same size and alignment as a
+/// [`usize`] or [`*const ()`](pointer).
977
#[unstable(feature = "pointer_like_trait", issue = "none")]
978
#[lang = "pointer_like"]
979
#[diagnostic::on_unimplemented(
0 commit comments