combine_substructure: combine_substructure(box |a, b, c| {
default_substructure(a, b, c)
})
- })
+ }
+ ),
+ associated_types: Vec::new(),
};
trait_def.expand(cx, mitem, item, push)
}
StaticEnum(..) => {
cx.span_err(trait_span, "`Default` cannot be derived for enums, only structs");
// let compilation continue
- cx.expr_uint(trait_span, 0)
+ cx.expr_usize(trait_span, 0)
}
_ => cx.span_bug(trait_span, "Non-static method in `derive(Default)`")
};