error[E0412]: cannot find type `INVALID` in this scope --> tests/function_component_attr/generic-props-fail.rs:25:19 | 20 | fn compile_fail() { | - help: you might be missing a type parameter: `` ... 25 | html! { /> }; | ^^^^^^^ not found in this scope error[E0277]: the trait bound `AssertAllProps: HasProp` is not satisfied --> tests/function_component_attr/generic-props-fail.rs:22:14 | 22 | html! { /> }; | ^^^^ the trait `HasProp` is not implemented for `AssertAllProps` | = help: the following other types implement trait `HasProp`: as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> and $N others note: required because of the requirements on the impl of `HasAllProps` for `CheckPropsAll` --> tests/function_component_attr/generic-props-fail.rs:3:17 | 3 | #[derive(Clone, Properties, PartialEq)] | ^^^^^^^^^^ = note: required because of the requirements on the impl of `AllPropsFor` for `AssertAllProps` note: required by a bound in `yew::html::component::properties::__macro::PreBuild::::build` --> $WORKSPACE/packages/yew/src/html/component/properties.rs | | Token: AllPropsFor, | ^^^^^^^^^^^^^^^^^^^ required by this bound in `yew::html::component::properties::__macro::PreBuild::::build` = note: this error originates in the macro `html` which comes from the expansion of the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `Comp: yew::BaseComponent` is not satisfied --> tests/function_component_attr/generic-props-fail.rs:27:14 | 27 | html! { /> }; | ^^^^ the trait `yew::BaseComponent` is not implemented for `Comp` | = help: the trait `yew::BaseComponent` is implemented for `Comp

` = note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0599]: the function or associated item `new` exists for struct `VChild>`, but its trait bounds were not satisfied --> tests/function_component_attr/generic-props-fail.rs:27:14 | 8 | #[function_component(Comp)] | ------------------------- doesn't satisfy `Comp: yew::BaseComponent` ... 27 | html! { /> }; | ^^^^ function or associated item cannot be called on `VChild>` due to unsatisfied trait bounds | = note: the following trait bounds were not satisfied: `Comp: yew::BaseComponent` note: the following trait must be implemented --> $WORKSPACE/packages/yew/src/html/component/mod.rs | | pub trait BaseComponent: Sized + 'static { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `MissingTypeBounds: yew::Properties` is not satisfied --> tests/function_component_attr/generic-props-fail.rs:27:14 | 27 | html! { /> }; | ^^^^ the trait `yew::Properties` is not implemented for `MissingTypeBounds` | = help: the following other types implement trait `yew::Properties`: () ChildrenProps ContextProviderProps Props SuspenseProps note: required by a bound in `Comp` --> tests/function_component_attr/generic-props-fail.rs:11:8 | 8 | #[function_component(Comp)] | ---- required by a bound in this ... 11 | P: Properties + PartialEq, | ^^^^^^^^^^ required by this bound in `Comp` = note: this error originates in the macro `html` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0107]: missing generics for struct `Comp` --> tests/function_component_attr/generic-props-fail.rs:30:14 | 30 | html! { }; | ^^^^ expected 1 generic argument | note: struct defined here, with 1 generic parameter: `P` --> tests/function_component_attr/generic-props-fail.rs:8:22 | 8 | #[function_component(Comp)] | ^^^^ 9 | fn comp

(_props: &P) -> Html | - help: add missing generic argument | 30 | html! { /> }; | ~~~~~~~