Skip to content

Commit f6b03df

Browse files
committed
Add Destructible for replacing ~const Drop
1 parent bffb435 commit f6b03df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/src/marker.rs

+7
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,13 @@ impl<T: ?Sized> Unpin for *const T {}
792792
#[stable(feature = "pin_raw", since = "1.38.0")]
793793
impl<T: ?Sized> Unpin for *mut T {}
794794

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+
795802
/// Implementations of `Copy` for primitive types.
796803
///
797804
/// Implementations that cannot be described in Rust

0 commit comments

Comments
 (0)