use std::rc::Rc; #[derive(PartialEq)] //~ NOTE in this expansion pub struct Function { callback: Rc, //~ ERROR binary operation `==` cannot be applied to type `Rc` } fn main() {}