-
-
Notifications
You must be signed in to change notification settings - Fork 194
Open
Labels
language deficiencyBlocked on missing language or compiler featuresBlocked on missing language or compiler features
Description
Example issue:
#[derive(Archive, Deserialize, Serialize)]
#[rkyv(derive(Clone))] // error: the trait bound <T as Archive>::Archived: Clone is not satisfied
struct Foo<T>(T);
Can be fixed if the macro expansion uses:
struct ArchivedFoo<T>(T::Archived) where T: Archive
instead of:
struct ArchivedFoo<T>(<T as Archive>::Archived) where T: Archive
I was told this might be a Rust bug but all I know is that the first version should work and the second one doesn't 🤷
Metadata
Metadata
Assignees
Labels
language deficiencyBlocked on missing language or compiler featuresBlocked on missing language or compiler features