[macros] Remove type defaults from impl block generics

Caught while defining 'ZoneMD'.
This commit is contained in:
arya dradjica
2026-04-21 13:04:32 +00:00
committed by arya dradjica
parent 1c096351a3
commit 75624dc486
+6 -1
View File
@@ -57,7 +57,12 @@ impl ImplSkeleton {
}
GenericParam::Type(value) => {
types.push(value.clone());
types.push(TypeParam {
// Defaults are not allowed in 'impl' blocks.
eq_token: None,
default: None,
..value.clone()
});
let id = value.ident.clone();
let id = syn::TypePath {
qself: None,