We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PointerLike
1 parent 971a4f2 commit 159dba8Copy full SHA for 159dba8
library/core/src/marker.rs
@@ -982,8 +982,8 @@ pub trait Tuple {}
982
983
/// A marker for pointer-like types.
984
///
985
-/// All types that have the same size and alignment as a `usize` or
986
-/// `*const ()` automatically implement this trait.
+/// This trait can only be implemented for types that have the same size and alignment
+/// as a `usize` or `*const ()`.
987
#[unstable(feature = "pointer_like_trait", issue = "none")]
988
#[lang = "pointer_like"]
989
#[diagnostic::on_unimplemented(
0 commit comments