mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
20 lines
266 B
Rust
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() {}
|