yew/yew-macro/tests/props_macro/resolve-prop-fail.stderr
Simon fa2ab5abe7
Add a macro for building properties outside of html! (#1599)
* remove renamed imports from yew-macro

They add a lot of cognitive overhead and don't provide much benefit in this case.

* just a prototype

* cleanup

* add prop type resolver

* use new props for tags

* silence clippy

* simplify tag parsing

* clean up

* improve names

* fix list span

* new component props parsing

* fix rogue lint

* update tag attribute parsing

* unify prop handling

* add new tests

* integrate prop validation

* improve error span regression

* add docstring

* update tests

* add test for specifying `children` twice

* move properties derive macro

* component transformer documentation

* update properties documentation

* document special properties

* let's try to fix the spellcheck

* let's just use a newer image then

* document `with props` children

* clean up a tad

* is boolean the missing word?
Starting to question the use of this spell checker...

* add the note for the recursion limit back in

* code review

* improve error for duplicate children

* clippyfying

* revert Task: Drop

* HtmlTag -> HtmlElement

* link the issue for prop_or_else

* PropList -> SortedPropList

* use struct syntax

* use html! in transformer demonstration
2020-10-21 14:05:06 +02:00

18 lines
812 B
Plaintext

error[E0277]: the trait bound `std::vec::Vec<_>: yew::html::Properties` is not satisfied
--> $DIR/resolve-prop-fail.rs:38:17
|
38 | yew::props!(Vec<_> {});
| ^^^ the trait `yew::html::Properties` is not implemented for `std::vec::Vec<_>`
error[E0277]: the trait bound `MyComp: yew::html::Properties` is not satisfied
--> $DIR/resolve-prop-fail.rs:39:17
|
39 | yew::props!(MyComp {});
| ^^^^^^ the trait `yew::html::Properties` is not implemented for `MyComp`
error[E0277]: the trait bound `MyNotAComponent: yew::html::Component` is not satisfied
--> $DIR/resolve-prop-fail.rs:40:17
|
40 | yew::props!(MyNotAComponent::Properties {});
| ^^^^^^^^^^^^^^^ the trait `yew::html::Component` is not implemented for `MyNotAComponent`