#![recursion_limit = "128"] use yew::prelude::*; #[derive(Properties, PartialEq)] pub struct ChildProperties { pub string: String, #[props(required)] pub int: i32, } pub struct Child; impl Component for Child { type Message = (); type Properties = ChildProperties; fn create(props: Self::Properties, _: ComponentLink) -> Self { Child } fn update(&mut self, _: Self::Message) -> ShouldRender { unimplemented!() } } impl Renderable for Child { fn view(&self) -> Html { unimplemented!() } } #[derive(Properties)] pub struct ChildContainerProperties { pub children: ChildrenWithProps, } pub struct ChildContainer; impl Component for ChildContainer { type Message = (); type Properties = ChildContainerProperties; fn create(props: Self::Properties, _: ComponentLink) -> Self { ChildContainer } fn update(&mut self, _: Self::Message) -> ShouldRender { unimplemented!() } } impl Renderable for ChildContainer { fn view(&self) -> Html { unimplemented!() } } fn compile_fail() { html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { }; html! { { "Not allowed" } }; html! { { "Not allowed" } }; html! { <> }; html! { }; html! { }; html! { }; } fn main() {}