yew/tests/macro/html-block-fail.rs
Justin Starry 7ae088647b Add tests
2019-08-25 18:12:14 -04:00

20 lines
266 B
Rust

use yew::prelude::*;
fn compile_fail() {
html! {
<>
{ () }
</>
};
let not_tree = || ();
html! {
<div>{ not_tree() }</div>
};
html! {
<>{ for (0..3).map(|_| not_tree()) }</>
};
}
fn main() {}