Sign in
rust
/
rust-lang
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
deriving
/
do-not-suggest-calling-fn-in-derive-macro.rs
blob: 76b93c0c947cb307fb6dd8072be89a279d37891d [
file
] [
log
] [
blame
]
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
()
{}