mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 19:58:32 +00:00
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() {}
|