mirror of
https://github.com/yewstack/yew.git
synced 2026-02-01 17:26:28 +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() {}
|