gc_arena/
no_drop.rs

1// Trait that is automatically implemented for all types that implement `Drop`.
2//
3// Used to cause a conflicting trait impl if a type implements `Drop` to forbid implementing `Drop`.
4#[doc(hidden)]
5pub trait __MustNotImplDrop {}
6
7#[allow(drop_bounds)]
8impl<T: Drop> __MustNotImplDrop for T {}