Skip to content

Commit

Permalink
bless expected output from trybuild
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldSEnder committed Aug 22, 2024
1 parent 8babe69 commit 9fe89b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ fn const_generics<const N: ::std::primitive::i32>() -> ::yew::Html {
}

fn compile_pass() {
::yew::html! { <Comp<Props> a=10 /> };
::yew::html! { <Comp1<::std::primitive::usize, ::std::primitive::usize> /> };
let _ = ::yew::html! { <Comp<Props> a=10 /> };
let _ = ::yew::html! { <Comp1<::std::primitive::usize, ::std::primitive::usize> /> };

::yew::html! { <ConstGenerics<10> /> };
let _ = ::yew::html! { <ConstGenerics<10> /> };
}

fn main() {}
2 changes: 1 addition & 1 deletion packages/yew-macro/tests/hook_attr/hook-trait-item-pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub trait MyTrait {

#[yew::hook]
pub fn use_query_state<Props>(
selector: impl yew::html::IntoPropValue<bool>,
_selector: impl yew::html::IntoPropValue<bool>,
) -> QueryState<Props::Associated>
where
Props: MyTrait,
Expand Down
2 changes: 1 addition & 1 deletion packages/yew-macro/tests/html_macro/node-fail.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ error: only one root html element is allowed (hint: you can wrap multiple html e
4 | html! { "valid" "invalid" };
| ^^^^^^^^^

error: unexpected token
error: unexpected token, expected `}`
--> tests/html_macro/node-fail.rs:5:29
|
5 | html! { <span>{ "valid" "invalid" }</span> };
Expand Down

0 comments on commit 9fe89b5

Please sign in to comment.