error: unexpected end of input, expected an expression --> tests/derive_props/fail.rs:56:19 | 56 | #[prop_or()] | ^ error: cannot find attribute `props` in this scope --> tests/derive_props/fail.rs:22:11 | 22 | #[props(default)] | ^^^^^ error[E0425]: cannot find value `foo` in this scope --> tests/derive_props/fail.rs:86:24 | 86 | #[prop_or_else(foo)] | ^^^ not found in this scope | note: these functions exist but are inaccessible --> tests/derive_props/fail.rs:100:5 | 100 | fn foo(bar: i32) -> String { | ^^^^^^^^^^^^^^^^^^^^^^^^^^ `crate::t9::foo`: not accessible ... 114 | fn foo() -> i32 { | ^^^^^^^^^^^^^^^ `crate::t10::foo`: not accessible error[E0277]: the trait bound `Value: Default` is not satisfied --> tests/derive_props/fail.rs:9:21 | 9 | #[derive(Clone, Properties, PartialEq)] | ^^^^^^^^^^ the trait `Default` is not implemented for `Value` | note: required by a bound in `Option::::unwrap_or_default` = note: this error originates in the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider annotating `Value` with `#[derive(Default)]` | 8 | #[derive(Default)] | error[E0369]: binary operation `==` cannot be applied to type `Value` --> tests/derive_props/fail.rs:13:9 | 9 | #[derive(Clone, Properties, PartialEq)] | --------- in this derive macro expansion ... 13 | value: Value, | ^^^^^^^^^^^^ | note: an implementation of `PartialEq<_>` might be missing for `Value` --> tests/derive_props/fail.rs:8:5 | 8 | struct Value; | ^^^^^^^^^^^^ must implement `PartialEq<_>` = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider annotating `Value` with `#[derive(PartialEq)]` | 8 | #[derive(PartialEq)] | error[E0369]: binary operation `!=` cannot be applied to type `Value` --> tests/derive_props/fail.rs:13:9 | 9 | #[derive(Clone, Properties, PartialEq)] | --------- in this derive macro expansion ... 13 | value: Value, | ^^^^^^^^^^^^ | note: an implementation of `PartialEq<_>` might be missing for `Value` --> tests/derive_props/fail.rs:8:5 | 8 | struct Value; | ^^^^^^^^^^^^ must implement `PartialEq<_>` = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info) help: consider annotating `Value` with `#[derive(PartialEq)]` | 8 | #[derive(PartialEq)] | error[E0277]: the trait bound `AssertAllProps: HasProp` is not satisfied --> tests/derive_props/fail.rs:35:24 | 35 | ::yew::props!{ Props { } }; | ^^^^^ the trait `HasProp` is not implemented for `AssertAllProps` | = help: the following other types implement trait `HasProp`: as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> and $N others note: required because of the requirements on the impl of `HasAllProps` for `t3::CheckPropsAll` --> tests/derive_props/fail.rs:29:21 | 29 | #[derive(Clone, Properties, PartialEq)] | ^^^^^^^^^^ = note: required because of the requirements on the impl of `AllPropsFor` for `AssertAllProps` note: required by a bound in `html::component::properties::__macro::PreBuild::::build` --> $WORKSPACE/packages/yew/src/html/component/properties.rs | | Token: AllPropsFor, | ^^^^^^^^^^^^^^^^^^^ required by this bound in `html::component::properties::__macro::PreBuild::::build` = note: this error originates in the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: the trait bound `AssertAllProps: HasProp` is not satisfied --> tests/derive_props/fail.rs:47:24 | 47 | ::yew::props!{ Props { } }; | ^^^^^ the trait `HasProp` is not implemented for `AssertAllProps` | = help: the following other types implement trait `HasProp`: as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> as HasProp>> and $N others note: required because of the requirements on the impl of `HasAllProps` for `t4::CheckPropsAll` --> tests/derive_props/fail.rs:41:21 | 41 | #[derive(Clone, Properties, PartialEq)] | ^^^^^^^^^^ = note: required because of the requirements on the impl of `AllPropsFor` for `AssertAllProps` note: required by a bound in `html::component::properties::__macro::PreBuild::::build` --> $WORKSPACE/packages/yew/src/html/component/properties.rs | | Token: AllPropsFor, | ^^^^^^^^^^^^^^^^^^^ required by this bound in `html::component::properties::__macro::PreBuild::::build` = note: this error originates in the derive macro `Properties` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0308]: mismatched types --> tests/derive_props/fail.rs:66:19 | 66 | #[prop_or(123)] | ^^^ | | | expected struct `String`, found integer | arguments to this function are incorrect | note: associated function defined here help: try using a conversion method | 66 | #[prop_or(123.to_string())] | ++++++++++++ 66 | #[prop_or(123.to_string())] | ++++++++++++ error[E0277]: expected a `FnOnce<()>` closure, found `{integer}` --> tests/derive_props/fail.rs:76:24 | 76 | #[prop_or_else(123)] | ^^^ expected an `FnOnce<()>` closure, found `{integer}` | = help: the trait `FnOnce<()>` is not implemented for `{integer}` = note: wrap the `{integer}` in a closure with no arguments: `|| { /* code */ }` note: required by a bound in `Option::::unwrap_or_else` error[E0593]: function is expected to take 0 arguments, but it takes 1 argument --> tests/derive_props/fail.rs:96:24 | 96 | #[prop_or_else(foo)] | ^^^ expected function that takes 0 arguments ... 100 | fn foo(bar: i32) -> String { | -------------------------- takes 1 argument | note: required by a bound in `Option::::unwrap_or_else` error[E0271]: type mismatch resolving ` i32 {t10::foo} as FnOnce<()>>::Output == String` --> tests/derive_props/fail.rs:110:24 | 110 | #[prop_or_else(foo)] | ^^^ expected struct `String`, found `i32` | note: required by a bound in `Option::::unwrap_or_else`