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
22 lines
398 B
Rust
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() {}
|