Closed
Description
#[derive(PartialEq)]
struct Foo {
bar: Box<Baz>
}
trait Baz: PartialEq {
fn quux(&self);
}
Results in a compiler error: cannot move out of borrowed content ... in expansion of #[derive_PartialEq]
It'd be great if the PartialEq derivation were written in such a way that this were possible.