mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Document PointerLike
This commit is contained in:
parent
2b3f260e74
commit
cca82fd997
@ -871,7 +871,10 @@ pub trait Destruct {}
|
||||
#[rustc_deny_explicit_impl]
|
||||
pub trait Tuple {}
|
||||
|
||||
/// A marker for things
|
||||
/// A marker for pointer-like types.
|
||||
///
|
||||
/// All types that have the same size and alignment as a `usize` or
|
||||
/// `*const ()` automatically implement this trait.
|
||||
#[unstable(feature = "pointer_like_trait", issue = "none")]
|
||||
#[cfg_attr(bootstrap, lang = "pointer_sized")]
|
||||
#[cfg_attr(not(bootstrap), lang = "pointer_like")]
|
||||
|
Loading…
Reference in New Issue
Block a user