We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Destructible
~const Drop
1 parent bffb435 commit f6b03dfCopy full SHA for f6b03df
core/src/marker.rs
@@ -792,6 +792,13 @@ impl<T: ?Sized> Unpin for *const T {}
792
#[stable(feature = "pin_raw", since = "1.38.0")]
793
impl<T: ?Sized> Unpin for *mut T {}
794
795
+/// A marker for types that can be dropped.
796
+///
797
+/// The compiler logic for this trait is currently unimplemented.
798
+#[unstable(feature = "const_trait_impl", issue = "67792")]
799
+#[cfg_attr(not(bootstrap), lang = "destructible")]
800
+pub trait Destructible {}
801
+
802
/// Implementations of `Copy` for primitive types.
803
///
804
/// Implementations that cannot be described in Rust
0 commit comments