rust/tests/ui/deriving/do-not-suggest-calling-fn-in-derive-macro.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
205 B
Rust
Raw Normal View History

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() {}