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

22 lines
398 B
Rust

use yew::prelude::*;
fn compile_fail() {
html! { "valid" "invalid" };
html! { <span>{ "valid" "invalid" }</span> };
html! { () };
html! { invalid };
// unsupported literals
html! { b'a' };
html! { b"str" };
html! { <span>{ b'a' }</span> };
html! { <span>{ b"str" }</span> };
let not_node = || ();
html! {
not_node()
};
}
fn main() {}