fix: preserve where clause when builtin derive

This commit is contained in:
austaras 2024-02-04 11:35:27 +08:00
parent e9d3565cd1
commit dad0fdb13f
3 changed files with 50 additions and 5 deletions

View file

@ -157,7 +157,7 @@ where
generic: Vec<T::InGenericArg>,
}
impl <T: $crate::clone::Clone, > $crate::clone::Clone for Foo<T, > where T: Trait, T::InFieldShorthand: $crate::clone::Clone, T::InGenericArg: $crate::clone::Clone, {
impl <T: $crate::clone::Clone, > $crate::clone::Clone for Foo<T, > where <T as Trait>::InWc: Marker, T: Trait, T::InFieldShorthand: $crate::clone::Clone, T::InGenericArg: $crate::clone::Clone, {
fn clone(&self ) -> Self {
match self {
Foo {