Luke Chu bc46062864
Refactor html tag peeking (#1738)
* Fix html macro tests

* Fix generics with lowercase type param

* Satisfy clippy

* Parse generics with multiple type params

* Reorganize tests

* Remove Peek for HtmlTree

* Add additional test

* cargo fmt

* Remove peek_component_type

* Remove failing tests
2021-02-27 15:49:45 +01: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() {}