This is a side-effect because the first form of the connect macro also works with Relm as 3rd argument.
I added a type hinting, I hope the error message is clear:
error[E0308]: mismatched types
--> examples/menu.rs:55:9
|
55 | connect!(quit_item, connect_activate(_), self.model.relm, Quit);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `relm::component::Component`, found struct `relm::state::Relm`
|
= note: expected reference `&relm::component::Component<_>`
found reference `&relm::state::Relm<Win>`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
Fixes #194
This is a side-effect because the first form of the
connect
macro also works withRelm
as 3rd argument.I added a type hinting, I hope the error message is clear: