error: this opening tag has no corresponding closing tag
--> tests/html_macro/element-fail.rs:7:13
|
7 | html! {
};
| ^^^^^
error: this opening tag has no corresponding closing tag
--> tests/html_macro/element-fail.rs:8:18
|
8 | html! {
};
| ^^^^^
error: this opening tag has no corresponding closing tag
--> tests/html_macro/element-fail.rs:9:13
|
9 | html! {
};
| ^^^^^
error: this closing tag has no corresponding opening tag
--> tests/html_macro/element-fail.rs:12:13
|
12 | html! {
};
| ^^^^^^
error: this closing tag has no corresponding opening tag
--> tests/html_macro/element-fail.rs:13:18
|
13 | html! { };
| ^^^^^^^
error: only one root html element is allowed (hint: you can wrap multiple html elements in a fragment `<>>`)
--> tests/html_macro/element-fail.rs:14:20
|
14 | html! { };
| ^^^^^^
error: this closing tag has no corresponding opening tag
--> tests/html_macro/element-fail.rs:17:18
|
17 | html! {
};
| ^^^^^^^
error: this closing tag has no corresponding opening tag
--> tests/html_macro/element-fail.rs:18:20
|
18 | html! { };
| ^^^^^^^^
error: only one root html element is allowed (hint: you can wrap multiple html elements in a fragment `<>>`)
--> tests/html_macro/element-fail.rs:21:24
|
21 | html! { };
| ^^^^^^^^^^^
error: expected a valid html element
--> tests/html_macro/element-fail.rs:23:18
|
23 | html! {
Invalid
};
| ^^^^^^^
error: `attr` can only be specified once but is given here again
--> tests/html_macro/element-fail.rs:26:27
|
26 | html! { };
| ^^^^
error: `value` can only be specified once but is given here again
--> tests/html_macro/element-fail.rs:27:32
|
27 | html! { };
| ^^^^^
error: `kind` can only be specified once but is given here again
--> tests/html_macro/element-fail.rs:28:36
|
28 | html! { };
| ^^^^
error: `checked` can only be specified once but is given here again
--> tests/html_macro/element-fail.rs:29:33
|
29 | html! { };
| ^^^^^^^
error: `disabled` can only be specified once but is given here again
--> tests/html_macro/element-fail.rs:30:34
|
30 | html! { };
| ^^^^^^^^
error: `selected` can only be specified once but is given here again
--> tests/html_macro/element-fail.rs:31:35
|
31 | html! { };
| ^^^^^^^^
error: `class` can only be specified once but is given here again
--> tests/html_macro/element-fail.rs:32:32
|
32 | html! { };
| ^^^^^
error: `ref` can only be specified once
--> tests/html_macro/element-fail.rs:33:29
|
33 | html! { };
| ^^^
error: `ref` can only be specified once
--> tests/html_macro/element-fail.rs:63:29
|
63 | html! { };
| ^^^
error: the tag `` is a void element and cannot have children (hint: rewrite this as ``)
--> tests/html_macro/element-fail.rs:66:13
|
66 | html! { };
| ^^^^^^^^^^^^^^^^^^^
error: the tag `` is a void element and cannot have children (hint: rewrite this as ``)
--> tests/html_macro/element-fail.rs:68:13
|
68 | html! { };
| ^^^^^^^^^^^^^^^^^^^
error: this dynamic tag is missing an expression block defining its value
--> tests/html_macro/element-fail.rs:71:14
|
71 | html! { <@>@> };
| ^
error: this dynamic tag is missing an expression block defining its value
--> tests/html_macro/element-fail.rs:72:14
|
72 | html! { <@/> };
| ^
error: dynamic closing tags must not have a body (hint: replace it with just `@>`)
--> tests/html_macro/element-fail.rs:75:27
|
75 | html! { <@{"test"}>@{"test"}> };
| ^^^^^^^^
error: the property value must be either a literal or enclosed in braces. Consider adding braces around your expression.: Expr::Tuple {
attrs: [],
paren_token: Paren,
elems: [
Expr::Lit {
attrs: [],
lit: Lit::Str {
token: "deprecated",
},
},
Comma,
Expr::Lit {
attrs: [],
lit: Lit::Str {
token: "warning",
},
},
],
}
--> tests/html_macro/element-fail.rs:83:24
|
83 | html! { };
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: the property value must be either a literal or enclosed in braces. Consider adding braces around your expression.: Expr::Tuple {
attrs: [],
paren_token: Paren,
elems: [],
}
--> tests/html_macro/element-fail.rs:84:24
|
84 | html! { };
| ^^
error: the property value must be either a literal or enclosed in braces. Consider adding braces around your expression.: Expr::Tuple {
attrs: [],
paren_token: Paren,
elems: [],
}
--> tests/html_macro/element-fail.rs:85:24
|
85 | html! { };
| ^^
error: the property value must be either a literal or enclosed in braces. Consider adding braces around your expression.: Expr::Call {
attrs: [],
func: Expr::Path {
attrs: [],
qself: None,
path: Path {
leading_colon: None,
segments: [
PathSegment {
ident: Ident {
ident: "Some",
span: #0 bytes(2632..2636),
},
arguments: PathArguments::None,
},
],
},
},
paren_token: Paren,
args: [
Expr::Lit {
attrs: [],
lit: Lit::Int {
token: 5,
},
},
],
}
--> tests/html_macro/element-fail.rs:86:28
|
86 | html! { };
| ^^^^^^^
error: the property value must be either a literal or enclosed in braces. Consider adding braces around your expression.: Expr::Path {
attrs: [],
qself: None,
path: Path {
leading_colon: None,
segments: [
PathSegment {
ident: Ident {
ident: "NotToString",
span: #0 bytes(2672..2683),
},
arguments: PathArguments::None,
},
],
},
}
--> tests/html_macro/element-fail.rs:87:27
|
87 | html! { };
| ^^^^^^^^^^^
error: the property value must be either a literal or enclosed in braces. Consider adding braces around your expression.: Expr::Call {
attrs: [],
func: Expr::Path {
attrs: [],
qself: None,
path: Path {
leading_colon: None,
segments: [
PathSegment {
ident: Ident {
ident: "Some",
span: #0 bytes(2711..2715),
},
arguments: PathArguments::None,
},
],
},
},
paren_token: Paren,
args: [
Expr::Path {
attrs: [],
qself: None,
path: Path {
leading_colon: None,
segments: [
PathSegment {
ident: Ident {
ident: "NotToString",
span: #0 bytes(2716..2727),
},
arguments: PathArguments::None,
},
],
},
},
],
}
--> tests/html_macro/element-fail.rs:88:22
|
88 | html! { };
| ^^^^^^^^^^^^^^^^^
error: the property value must be either a literal or enclosed in braces. Consider adding braces around your expression.: Expr::Call {
attrs: [],
func: Expr::Path {
attrs: [],
qself: None,
path: Path {
leading_colon: None,
segments: [
PathSegment {
ident: Ident {
ident: "Some",
span: #0 bytes(2755..2759),
},
arguments: PathArguments::None,
},
],
},
},
paren_token: Paren,
args: [
Expr::Lit {
attrs: [],
lit: Lit::Int {
token: 5,
},
},
],
}
--> tests/html_macro/element-fail.rs:89:21
|
89 | html! { };
| ^^^^^^^
error: the property value must be either a literal or enclosed in braces. Consider adding braces around your expression.: Expr::Tuple {
attrs: [],
paren_token: Paren,
elems: [],
}
--> tests/html_macro/element-fail.rs:90:25
|
90 | html! { };
| ^^
error: the property value must be either a literal or enclosed in braces. Consider adding braces around your expression.: Expr::Tuple {
attrs: [],
paren_token: Paren,
elems: [],
}
--> tests/html_macro/element-fail.rs:91:26
|
91 | html! { };
| ^^
error: the property value must be either a literal or enclosed in braces. Consider adding braces around your expression.: Expr::Path {
attrs: [],
qself: None,
path: Path {
leading_colon: None,
segments: [
PathSegment {
ident: Ident {
ident: "NotToString",
span: #0 bytes(2862..2873),
},
arguments: PathArguments::None,
},
],
},
}
--> tests/html_macro/element-fail.rs:92:27
|
92 | html! { };
| ^^^^^^^^^^^
warning: use of deprecated function `compile_fail::deprecated_use_of_class`: the use of `(...)` with the attribute `class` is deprecated and will be removed in version 0.19. Use the `classes!` macro instead.
--> tests/html_macro/element-fail.rs:80:25
|
80 | html! { };
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
error[E0308]: mismatched types
--> tests/html_macro/element-fail.rs:36:28
|
36 | html! { };
| -----------------------^-----
| | |
| | expected `bool`, found integer
| arguments to this enum variant are incorrect
|
note: tuple variant defined here
error[E0308]: mismatched types
--> tests/html_macro/element-fail.rs:37:29
|
37 | html! { };
| ------------------------^^^^^^^^^^^------
| | |
| | expected `bool`, found enum `Option`
| arguments to this enum variant are incorrect
|
= note: expected type `bool`
found enum `Option`
note: tuple variant defined here
error[E0308]: mismatched types
--> tests/html_macro/element-fail.rs:38:29
|
38 | html! { };
| ^
| |
| expected `bool`, found integer
| arguments to this function are incorrect
|
note: function defined here
--> $WORKSPACE/packages/yew/src/utils/mod.rs
|
| pub fn __ensure_type(_: T) {}
| ^^^^^^^^^^^^^
error[E0308]: mismatched types
--> tests/html_macro/element-fail.rs:39:30
|
39 | html! { };
| ^^^^^^^^^^ expected `bool`, found enum `Option`
|
= note: expected type `bool`
found enum `Option`
error[E0308]: mismatched types
--> tests/html_macro/element-fail.rs:40:30
|
40 | html! { };
| ^
| |
| expected `bool`, found integer
| arguments to this function are incorrect
|
note: function defined here
--> $WORKSPACE/packages/yew/src/utils/mod.rs
|
| pub fn __ensure_type(_: T) {}
| ^^^^^^^^^^^^^
error[E0277]: the trait bound `(): IntoPropValue