use yew::prelude::*; #[derive(Clone, Properties, PartialEq)] struct Props { a: usize, } #[function_component(Comp)] fn comp

(_props: &P) -> Html where P: Properties + PartialEq, { html! {

} } struct MissingTypeBounds; fn compile_fail() { // missing prop 'a' html! { /> }; // invalid type parameter html! { /> }; // parameter doesn't match bounds html! { /> }; // missing type param html! { }; } fn main() {}