zng/tests/macro-tests/cases/property/prefix_get_default.stderr

38 lines
1.7 KiB
Plaintext

error[E0277]: can't compare `NotDefault` with `NotDefault`
--> cases/property/prefix_get_default.rs:10:58
|
10 | pub fn get_state_invalid(child: impl UiNode, state: impl IntoVar<NotDefault>) -> impl UiNode {
| ^^^^^^^^^^^^^^^^^^^ no implementation for `NotDefault == NotDefault`
|
= help: the trait `PartialEq` is not implemented for `NotDefault`, which is required by `NotDefault: VarValue`
= note: required for `NotDefault` to implement `VarValue`
note: required by a bound in `IntoVar`
--> $WORKSPACE/crates/zng-var/src/lib.rs
|
| pub trait IntoVar<T: VarValue> {
| ^^^^^^^^ required by this bound in `IntoVar`
help: consider annotating `NotDefault` with `#[derive(PartialEq)]`
|
16 + #[derive(PartialEq)]
17 | pub struct NotDefault {}
|
error[E0277]: can't compare `NotDefault` with `NotDefault`
--> cases/property/prefix_get_default.rs:10:66
|
10 | pub fn get_state_invalid(child: impl UiNode, state: impl IntoVar<NotDefault>) -> impl UiNode {
| ^^^^^^^^^^ no implementation for `NotDefault == NotDefault`
|
= help: the trait `PartialEq` is not implemented for `NotDefault`, which is required by `NotDefault: VarValue`
= note: required for `NotDefault` to implement `VarValue`
note: required by a bound in `WhenInputVar::new`
--> $WORKSPACE/crates/zng-app/src/widget/builder.rs
|
| pub fn new<T: VarValue>() -> (Self, impl Var<T>) {
| ^^^^^^^^ required by this bound in `WhenInputVar::new`
help: consider annotating `NotDefault` with `#[derive(PartialEq)]`
|
16 + #[derive(PartialEq)]
17 | pub struct NotDefault {}
|