diff options
| author | Lukas Markeffsky <@> | 2024-12-20 17:37:34 +0100 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2024-12-20 17:37:34 +0100 |
| commit | 159dba89efa23c36eca92f1b63176314c357d2a4 (patch) | |
| tree | 54386834d52de7d2fd658103abb69757a708a07d | |
| parent | 971a4f2d3b0c44fae115b39e4fa9607a911ed59c (diff) | |
| download | rust-159dba89efa23c36eca92f1b63176314c357d2a4.tar.gz rust-159dba89efa23c36eca92f1b63176314c357d2a4.zip | |
fix `PointerLike` docs
| -rw-r--r-- | library/core/src/marker.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/marker.rs b/library/core/src/marker.rs index bdfa162919f..3d79706f8ec 100644 --- a/library/core/src/marker.rs +++ b/library/core/src/marker.rs @@ -982,8 +982,8 @@ pub trait Tuple {} /// A marker for pointer-like types. /// -/// All types that have the same size and alignment as a `usize` or -/// `*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 ()`. #[unstable(feature = "pointer_like_trait", issue = "none")] #[lang = "pointer_like"] #[diagnostic::on_unimplemented( |
