-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
this works:
#[component]
struct SpecificDuck {}
this does not work:
#[component]
struct SpecificDuck;
the error is:
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]
Metadata
Metadata
Assignees
Labels
No labels