mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00

Do not suggest ``` help: use parentheses to call these | 5 | (callback: Rc<dyn Fn()>)(), | + +++ ``` Skip all "call function for this binop" suggestions when in a derive context. Fix #135989.
9 lines
205 B
Rust
9 lines
205 B
Rust
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() {}
|