diff --git a/library/core/src/gc.rs b/library/core/src/gc.rs index f07d3cadbf63f..11c5f51736e80 100644 --- a/library/core/src/gc.rs +++ b/library/core/src/gc.rs @@ -19,7 +19,7 @@ pub unsafe trait FinalizerOptional {} /// because of the orphan rule. However, if `NonFinalizable` is used as a /// field type of another type which is finalizable, then `T` will also be /// finalized. -#[derive(Debug, PartialEq, Eq)] +#[derive(Debug, PartialEq, Eq, Clone)] #[rustc_diagnostic_item = "non_finalizable"] pub struct NonFinalizable(T);