about summary refs log tree commit diff
path: root/tests/ui/deriving/do-not-suggest-calling-fn-in-derive-macro.rs
blob: 76b93c0c947cb307fb6dd8072be89a279d37891d (plain)
1
2
3
4
5
6
7
8
use std::rc::Rc;

#[derive(PartialEq)] //~ NOTE in this expansion
pub struct Function {
    callback: Rc<dyn Fn()>, //~ ERROR binary operation `==` cannot be applied to type `Rc<dyn Fn()>`
}

fn main() {}