We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cfc190 commit bbf8ee1Copy full SHA for bbf8ee1
core/src/marker.rs
@@ -809,6 +809,15 @@ pub trait Destruct {}
809
#[cfg_attr(not(bootstrap), rustc_deny_explicit_impl)]
810
pub trait Tuple {}
811
812
+/// A marker for things
813
+#[unstable(feature = "pointer_sized_trait", issue = "none")]
814
+#[cfg_attr(not(bootstrap), lang = "pointer_sized")]
815
+#[rustc_on_unimplemented(
816
+ message = "`{Self}` needs to be a pointer-sized type",
817
+ label = "`{Self}` needs to be a pointer-sized type"
818
+)]
819
+pub trait PointerSized {}
820
+
821
/// Implementations of `Copy` for primitive types.
822
///
823
/// Implementations that cannot be described in Rust
0 commit comments