mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
266 lines
13 KiB
Plaintext
266 lines
13 KiB
Plaintext
error: this open tag has no corresponding close tag
|
|
--> $DIR/html-component-fail.rs:53:13
|
|
|
|
|
53 | html! { <Child> };
|
|
| ^^^^^^^
|
|
|
|
error: expected identifier
|
|
--> $DIR/html-component-fail.rs:54:22
|
|
|
|
|
54 | html! { <Child:: /> };
|
|
| ^
|
|
|
|
error: unexpected end of input, expected identifier
|
|
--> $DIR/html-component-fail.rs:55:5
|
|
|
|
|
55 | html! { <Child with /> };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
|
|
|
error: unexpected token
|
|
--> $DIR/html-component-fail.rs:56:20
|
|
|
|
|
56 | html! { <Child props /> };
|
|
| ^^^^^
|
|
|
|
error: this open tag has no corresponding close tag
|
|
--> $DIR/html-component-fail.rs:57:13
|
|
|
|
|
57 | html! { <Child with props > };
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: unexpected token
|
|
--> $DIR/html-component-fail.rs:58:38
|
|
|
|
|
58 | html! { <Child with props ref=() ref=() /> };
|
|
| ^^^
|
|
|
|
error: unexpected token
|
|
--> $DIR/html-component-fail.rs:59:27
|
|
|
|
|
59 | html! { <Child ref=() with props /> };
|
|
| ^^^^
|
|
|
|
error: unexpected token
|
|
--> $DIR/html-component-fail.rs:61:31
|
|
|
|
|
61 | html! { <Child with props () /> };
|
|
| ^^
|
|
|
|
error: expected identifier
|
|
--> $DIR/html-component-fail.rs:62:20
|
|
|
|
|
62 | html! { <Child type=0 /> };
|
|
| ^^^^
|
|
|
|
error: expected identifier
|
|
--> $DIR/html-component-fail.rs:63:20
|
|
|
|
|
63 | html! { <Child invalid-prop-name=0 /> };
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: unexpected end of input, expected expression
|
|
--> $DIR/html-component-fail.rs:65:5
|
|
|
|
|
65 | html! { <Child string= /> };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
|
|
|
error: too many refs set
|
|
--> $DIR/html-component-fail.rs:70:33
|
|
|
|
|
70 | html! { <Child int=1 ref=() ref=() /> };
|
|
| ^^^
|
|
|
|
error: this close tag has no corresponding open tag
|
|
--> $DIR/html-component-fail.rs:73:13
|
|
|
|
|
73 | html! { </Child> };
|
|
| ^^^^^^^^
|
|
|
|
error: this open tag has no corresponding close tag
|
|
--> $DIR/html-component-fail.rs:74:13
|
|
|
|
|
74 | html! { <Child><Child></Child> };
|
|
| ^^^^^^^
|
|
|
|
error: only one root html element allowed
|
|
--> $DIR/html-component-fail.rs:75:28
|
|
|
|
|
75 | html! { <Child></Child><Child></Child> };
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: this close tag has no corresponding open tag
|
|
--> $DIR/html-component-fail.rs:84:30
|
|
|
|
|
84 | html! { <Generic<String>></Generic> };
|
|
| ^^^^^^^^^^
|
|
|
|
error: this close tag has no corresponding open tag
|
|
--> $DIR/html-component-fail.rs:85:30
|
|
|
|
|
85 | html! { <Generic<String>></Generic<Vec<String>>> };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error[E0425]: cannot find value `blah` in this scope
|
|
--> $DIR/html-component-fail.rs:60:25
|
|
|
|
|
60 | html! { <Child with blah /> };
|
|
| ^^^^ not found in this scope
|
|
|
|
error[E0609]: no field `unknown` on type `ChildProperties`
|
|
--> $DIR/html-component-fail.rs:64:20
|
|
|
|
|
64 | html! { <Child unknown="unknown" /> };
|
|
| ^^^^^^^ unknown field
|
|
|
|
|
= note: available fields are: `string`, `int`
|
|
|
|
error[E0599]: no method named `unknown` found for type `ChildPropertiesBuilder<ChildPropertiesBuilderStep_missing_required_prop_int>` in the current scope
|
|
--> $DIR/html-component-fail.rs:64:20
|
|
|
|
|
6 | #[derive(Clone, Properties, PartialEq)]
|
|
| - method `unknown` not found for this
|
|
...
|
|
64 | html! { <Child unknown="unknown" /> };
|
|
| ^^^^^^^ method not found in `ChildPropertiesBuilder<ChildPropertiesBuilderStep_missing_required_prop_int>`
|
|
|
|
error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom::Transformer<(), std::string::String>` is not satisfied
|
|
--> $DIR/html-component-fail.rs:66:33
|
|
|
|
|
66 | html! { <Child int=1 string={} /> };
|
|
| ^^ the trait `yew::virtual_dom::Transformer<(), std::string::String>` is not implemented for `yew::virtual_dom::vcomp::VComp`
|
|
|
|
|
= help: the following implementations were found:
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a T, T>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a T, std::option::Option<T>>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a str, std::option::Option<std::string::String>>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a str, std::string::String>>
|
|
and 3 others
|
|
= note: required by `yew::virtual_dom::Transformer::transform`
|
|
|
|
error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom::Transformer<{integer}, std::string::String>` is not satisfied
|
|
--> $DIR/html-component-fail.rs:67:33
|
|
|
|
|
67 | html! { <Child int=1 string=3 /> };
|
|
| ^ the trait `yew::virtual_dom::Transformer<{integer}, std::string::String>` is not implemented for `yew::virtual_dom::vcomp::VComp`
|
|
|
|
|
= help: the following implementations were found:
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a T, T>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a T, std::option::Option<T>>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a str, std::option::Option<std::string::String>>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a str, std::string::String>>
|
|
and 3 others
|
|
= note: required by `yew::virtual_dom::Transformer::transform`
|
|
|
|
error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom::Transformer<{integer}, std::string::String>` is not satisfied
|
|
--> $DIR/html-component-fail.rs:68:33
|
|
|
|
|
68 | html! { <Child int=1 string={3} /> };
|
|
| ^^^ the trait `yew::virtual_dom::Transformer<{integer}, std::string::String>` is not implemented for `yew::virtual_dom::vcomp::VComp`
|
|
|
|
|
= help: the following implementations were found:
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a T, T>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a T, std::option::Option<T>>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a str, std::option::Option<std::string::String>>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a str, std::string::String>>
|
|
and 3 others
|
|
= note: required by `yew::virtual_dom::Transformer::transform`
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/html-component-fail.rs:69:30
|
|
|
|
|
69 | html! { <Child int=1 ref=() /> };
|
|
| ^^ expected struct `yew::html::NodeRef`, found ()
|
|
|
|
|
= note: expected type `yew::html::NodeRef`
|
|
found type `()`
|
|
|
|
error[E0277]: the trait bound `yew::virtual_dom::vcomp::VComp: yew::virtual_dom::Transformer<u32, i32>` is not satisfied
|
|
--> $DIR/html-component-fail.rs:71:24
|
|
|
|
|
71 | html! { <Child int=0u32 /> };
|
|
| ^^^^ the trait `yew::virtual_dom::Transformer<u32, i32>` is not implemented for `yew::virtual_dom::vcomp::VComp`
|
|
|
|
|
= help: the following implementations were found:
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a T, T>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a T, std::option::Option<T>>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a str, std::option::Option<std::string::String>>>
|
|
<yew::virtual_dom::vcomp::VComp as yew::virtual_dom::Transformer<&'a str, std::string::String>>
|
|
and 3 others
|
|
= note: required by `yew::virtual_dom::Transformer::transform`
|
|
|
|
error[E0599]: no method named `string` found for type `ChildPropertiesBuilder<ChildPropertiesBuilderStep_missing_required_prop_int>` in the current scope
|
|
--> $DIR/html-component-fail.rs:72:20
|
|
|
|
|
6 | #[derive(Clone, Properties, PartialEq)]
|
|
| - method `string` not found for this
|
|
...
|
|
72 | html! { <Child string="abc" /> };
|
|
| ^^^^^^ method not found in `ChildPropertiesBuilder<ChildPropertiesBuilderStep_missing_required_prop_int>`
|
|
|
|
error[E0599]: no method named `children` found for type `ChildPropertiesBuilder<ChildPropertiesBuilderStep_missing_required_prop_int>` in the current scope
|
|
--> $DIR/html-component-fail.rs:76:5
|
|
|
|
|
6 | #[derive(Clone, Properties, PartialEq)]
|
|
| - method `children` not found for this
|
|
...
|
|
76 | html! { <Child>{ "Not allowed" }</Child> };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `ChildPropertiesBuilder<ChildPropertiesBuilderStep_missing_required_prop_int>`
|
|
|
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
|
|
|
error[E0599]: no method named `build` found for type `ChildContainerPropertiesBuilder<ChildContainerPropertiesBuilderStep_missing_required_prop_children>` in the current scope
|
|
--> $DIR/html-component-fail.rs:78:5
|
|
|
|
|
23 | #[derive(Clone, Properties)]
|
|
| - method `build` not found for this
|
|
...
|
|
78 | html! { <ChildContainer /> };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `ChildContainerPropertiesBuilder<ChildContainerPropertiesBuilderStep_missing_required_prop_children>`
|
|
|
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
|
|
|
error[E0599]: no method named `build` found for type `ChildContainerPropertiesBuilder<ChildContainerPropertiesBuilderStep_missing_required_prop_children>` in the current scope
|
|
--> $DIR/html-component-fail.rs:79:5
|
|
|
|
|
23 | #[derive(Clone, Properties)]
|
|
| - method `build` not found for this
|
|
...
|
|
79 | html! { <ChildContainer></ChildContainer> };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `ChildContainerPropertiesBuilder<ChildContainerPropertiesBuilderStep_missing_required_prop_children>`
|
|
|
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
|
|
|
error[E0277]: the trait bound `yew::virtual_dom::vcomp::VChild<Child>: std::convert::From<&str>` is not satisfied
|
|
--> $DIR/html-component-fail.rs:80:5
|
|
|
|
|
80 | html! { <ChildContainer>{ "Not allowed" }</ChildContainer> };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<&str>` is not implemented for `yew::virtual_dom::vcomp::VChild<Child>`
|
|
|
|
|
= note: required because of the requirements on the impl of `std::convert::Into<yew::virtual_dom::vcomp::VChild<Child>>` for `&str`
|
|
= note: required because of the requirements on the impl of `std::iter::IntoIterator` for `yew::utils::NodeSeq<&str, yew::virtual_dom::vcomp::VChild<Child>>`
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
|
|
|
error[E0277]: the trait bound `yew::virtual_dom::vcomp::VChild<Child>: std::convert::From<yew::virtual_dom::vnode::VNode>` is not satisfied
|
|
--> $DIR/html-component-fail.rs:81:5
|
|
|
|
|
81 | html! { <ChildContainer><></></ChildContainer> };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<yew::virtual_dom::vnode::VNode>` is not implemented for `yew::virtual_dom::vcomp::VChild<Child>`
|
|
|
|
|
= note: required because of the requirements on the impl of `std::convert::Into<yew::virtual_dom::vcomp::VChild<Child>>` for `yew::virtual_dom::vnode::VNode`
|
|
= note: required because of the requirements on the impl of `std::iter::IntoIterator` for `yew::utils::NodeSeq<yew::virtual_dom::vnode::VNode, yew::virtual_dom::vcomp::VChild<Child>>`
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|
|
|
|
error[E0277]: the trait bound `yew::virtual_dom::vcomp::VChild<Child>: std::convert::From<yew::virtual_dom::vnode::VNode>` is not satisfied
|
|
--> $DIR/html-component-fail.rs:82:5
|
|
|
|
|
82 | html! { <ChildContainer><other /></ChildContainer> };
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<yew::virtual_dom::vnode::VNode>` is not implemented for `yew::virtual_dom::vcomp::VChild<Child>`
|
|
|
|
|
= note: required because of the requirements on the impl of `std::convert::Into<yew::virtual_dom::vcomp::VChild<Child>>` for `yew::virtual_dom::vnode::VNode`
|
|
= note: required because of the requirements on the impl of `std::iter::IntoIterator` for `yew::utils::NodeSeq<yew::virtual_dom::vnode::VNode, yew::virtual_dom::vcomp::VChild<Child>>`
|
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
|