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