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

21 lines
405 B
Rust

use yew::prelude::*;
fn compile_fail() {
html! { <> };
html! { </> };
html! { <><> };
html! { </></> };
html! { <><></> };
html! { <></><></> };
html! { <>invalid</> };
html! { <key=></> };
html! { <key="key".to_string()></key> };
html! { <key="first key" key="second key" /> };
html! { <some_attr="test"></> };
html! { <key?=None></> };
}
fn main() {}