Skip to content

Commit

Permalink
bless trybuild tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ranile committed Aug 14, 2023
1 parent 6acbf26 commit 8103e4f
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 24 deletions.
28 changes: 16 additions & 12 deletions packages/yew-macro/tests/hook_macro/use_prepared_state-fail.stderr
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
error: expected closure
--> tests/hook_macro/use_prepared_state-fail.rs:6:38
error: this hook takes 2 arguments but 1 argument was supplied
--> tests/hook_macro/use_prepared_state-fail.rs:6:5
|
6 | use_prepared_state_with_closure!(123)?;
| ^^^
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `use_prepared_state_with_closure` (in Nightly builds, run with -Z macro-backtrace for more info)

error: You must specify a return type for this closure. This is used when the closure is omitted from the client side rendering bundle.
--> tests/hook_macro/use_prepared_state-fail.rs:8:38
error: expected closure
--> tests/hook_macro/use_prepared_state-fail.rs:8:55
|
8 | use_prepared_state_with_closure!(|_| { todo!() }, 123)?;
| ^^^^^^^^^^^^^^^
| ^^^

error: this hook takes 2 arguments but 1 argument was supplied
--> tests/hook_macro/use_prepared_state-fail.rs:10:5
Expand All @@ -26,17 +28,19 @@ error: this hook takes 2 arguments but 1 argument was supplied
|
= note: this error originates in the macro `use_prepared_state_with_closure` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected closure
--> tests/hook_macro/use_prepared_state-fail.rs:19:41
error: this hook takes 2 arguments but 1 argument was supplied
--> tests/hook_macro/use_prepared_state-fail.rs:19:5
|
19 | use_prepared_state_without_closure!(123)?;
| ^^^
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `use_prepared_state_without_closure` (in Nightly builds, run with -Z macro-backtrace for more info)

error: You must specify a return type for this closure. This is used when the closure is omitted from the client side rendering bundle.
--> tests/hook_macro/use_prepared_state-fail.rs:21:41
error: expected closure
--> tests/hook_macro/use_prepared_state-fail.rs:21:58
|
21 | use_prepared_state_without_closure!(|_| { todo!() }, 123)?;
| ^^^^^^^^^^^^^^^
| ^^^

error: this hook takes 2 arguments but 1 argument was supplied
--> tests/hook_macro/use_prepared_state-fail.rs:23:5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
error: expected closure
--> tests/hook_macro/use_transitive_state-fail.rs:6:40
error: this hook takes 2 arguments but 1 argument was supplied
--> tests/hook_macro/use_transitive_state-fail.rs:6:5
|
6 | use_transitive_state_with_closure!(123)?;
| ^^^
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `use_transitive_state_with_closure` (in Nightly builds, run with -Z macro-backtrace for more info)

error: You must specify a return type for this closure. This is used when the closure is omitted from the client side rendering bundle.
--> tests/hook_macro/use_transitive_state-fail.rs:8:40
error: expected closure
--> tests/hook_macro/use_transitive_state-fail.rs:8:57
|
8 | use_transitive_state_with_closure!(|_| { todo!() }, 123)?;
| ^^^^^^^^^^^^^^^
| ^^^

error: this hook takes 2 arguments but 1 argument was supplied
--> tests/hook_macro/use_transitive_state-fail.rs:10:5
Expand All @@ -18,17 +20,19 @@ error: this hook takes 2 arguments but 1 argument was supplied
|
= note: this error originates in the macro `use_transitive_state_with_closure` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected closure
--> tests/hook_macro/use_transitive_state-fail.rs:17:43
error: this hook takes 2 arguments but 1 argument was supplied
--> tests/hook_macro/use_transitive_state-fail.rs:17:5
|
17 | use_transitive_state_without_closure!(123)?;
| ^^^
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the macro `use_transitive_state_without_closure` (in Nightly builds, run with -Z macro-backtrace for more info)

error: You must specify a return type for this closure. This is used when the closure is omitted from the client side rendering bundle.
--> tests/hook_macro/use_transitive_state-fail.rs:19:43
error: expected closure
--> tests/hook_macro/use_transitive_state-fail.rs:19:60
|
19 | use_transitive_state_without_closure!(|_| { todo!() }, 123)?;
| ^^^^^^^^^^^^^^^
| ^^^

error: this hook takes 2 arguments but 1 argument was supplied
--> tests/hook_macro/use_transitive_state-fail.rs:21:5
Expand Down

0 comments on commit 8103e4f

Please sign in to comment.