rsproject/Relm4-0.6.2/relm4-macros/tests/ui/compile-fail/init-identifers.stderr
2024-03-02 00:19:08 +08:00

20 lines
787 B
Plaintext

error: parameter binding must be an identifier
--> tests/ui/compile-fail/init-identifers.rs:18:9
|
18 | (a, b): &Self::Root,
| ^^^^^^
error: parameter binding must be an identifier
--> tests/ui/compile-fail/init-identifers.rs:19:9
|
19 | _: ComponentSender<Self>,
| ^
error[E0050]: method `init` has 0 parameters but the declaration in trait `relm4::SimpleComponent::init` has 3
--> tests/ui/compile-fail/init-identifers.rs:42:5
|
42 | fn init() -> ComponentParts<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected 3 parameters, found 0
|
= note: `init` from trait: `fn(<Self as relm4::SimpleComponent>::Init, &<Self as relm4::SimpleComponent>::Root, relm4::ComponentSender<Self>) -> relm4::ComponentParts<Self>`