Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with tuples in closing tag
- Loading branch information
Showing
3 changed files
with
26 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 13 additions & 9 deletions
22
packages/yew-macro/tests/html_macro/generic-component-fail.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
error: this opening tag has no corresponding closing tag | ||
--> $DIR/generic-component-fail.rs:43:13 | ||
--> tests/html_macro/generic-component-fail.rs:43:13 | ||
| | ||
43 | html! { <Generic<String>> }; | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
||
error: this closing tag has no corresponding opening tag | ||
--> $DIR/generic-component-fail.rs:44:30 | ||
error[E0107]: missing generics for struct `Generic` | ||
--> tests/html_macro/generic-component-fail.rs:44:32 | ||
| | ||
44 | html! { <Generic<String>></Generic> }; | ||
| ^^^^^^^^^^ | ||
|
||
error: this closing tag has no corresponding opening tag | ||
--> $DIR/generic-component-fail.rs:45:30 | ||
| ^^^^^^^ expected 1 generic argument | ||
| | ||
note: struct defined here, with 1 generic parameter: `T` | ||
--> tests/html_macro/generic-component-fail.rs:4:12 | ||
| | ||
4 | pub struct Generic<T> { | ||
| ^^^^^^^ - | ||
help: add missing generic argument | ||
| | ||
45 | html! { <Generic<String>></Generic<Vec<String>>> }; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ | ||
44 | html! { <Generic<String>></Generic<T>> }; | ||
| ~~~~~~~~~~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters