#[component]
struct SpecificDuck;
error[E0618]: expected function, found struct `SpecificDuck`
--> examples/01-waiter-di.rs:11:8
|
10 | #[component]
| ------------ call expression requires function
11 | struct SpecificDuck;
| -------^^^^^^^^^^^^
| |
| struct `SpecificDuck` defined here
|
help: `SpecificDuck` is a unit struct, and does not take parentheses to be constructed
|
10 - #[component]
10 + #[component]
this works:
this does not work:
the error is: