mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
fix PointerLike
docs
This commit is contained in:
parent
971a4f2d3b
commit
159dba89ef
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user