Skip to content

Commit

Permalink
Update macro tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SamRodri committed Jan 9, 2025
1 parent e8f9530 commit cb38d2a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
16 changes: 8 additions & 8 deletions tests/macro-tests/cases/property/prefix_get_default.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ error[E0277]: the trait bound `NotDefault: VarValue` is not satisfied
--> cases/property/prefix_get_default.rs:10:58
|
10 | pub fn get_state_invalid(child: impl UiNode, state: impl IntoVar<NotDefault>) -> impl UiNode {
| ^^^^^^^^^^^^^^^^^^^ the trait `PartialEq` is not implemented for `NotDefault`, which is required by `NotDefault: VarValue`
| ^^^^^^^^^^^^^^^^^^^ the trait `PartialEq` is not implemented for `NotDefault`
|
= note: `VarValue` is implemented for all `T: Debug + Clone + PartialEq + Any + Send + Sync`
= note: required for `NotDefault` to implement `VarValue`
Expand All @@ -21,7 +21,7 @@ error[E0277]: the trait bound `NotDefault: VarValue` is not satisfied
--> cases/property/prefix_get_default.rs:10:66
|
10 | pub fn get_state_invalid(child: impl UiNode, state: impl IntoVar<NotDefault>) -> impl UiNode {
| ^^^^^^^^^^ the trait `PartialEq` is not implemented for `NotDefault`, which is required by `NotDefault: VarValue`
| ^^^^^^^^^^ the trait `PartialEq` is not implemented for `NotDefault`
|
= note: `VarValue` is implemented for all `T: Debug + Clone + PartialEq + Any + Send + Sync`
= note: required for `NotDefault` to implement `VarValue`
Expand All @@ -42,7 +42,7 @@ error[E0277]: can't compare `NotDefault` with `NotDefault`
9 | #[property(CONTEXT)]
| ^^^^^^^^^^^^^^^^^^^^ no implementation for `NotDefault == NotDefault`
|
= help: the trait `PartialEq` is not implemented for `NotDefault`, which is required by `NotDefault: VarValue`
= help: the trait `PartialEq` is not implemented for `NotDefault`
= note: required for `NotDefault` to implement `VarValue`
note: required by a bound in `WhenInputVar::new`
--> $WORKSPACE/crates/zng-app/src/widget/builder.rs
Expand All @@ -63,7 +63,7 @@ error[E0277]: can't compare `NotDefault` with `NotDefault`
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 `ArcVar<_>: IntoVar<NotDefault>`
= help: the trait `PartialEq` is not implemented for `NotDefault`
= help: the trait `IntoVar<T>` is implemented for `ArcVar<T>`
= note: required for `NotDefault` to implement `VarValue`
= note: required for `ArcVar<NotDefault>` to implement `IntoVar<NotDefault>`
Expand Down Expand Up @@ -101,7 +101,7 @@ error[E0277]: the trait bound `NotDefault: VarValue` is not satisfied
--> cases/property/prefix_get_default.rs:9:1
|
9 | #[property(CONTEXT)]
| ^^^^^^^^^^^^^^^^^^^^ the trait `PartialEq` is not implemented for `NotDefault`, which is required by `NotDefault: VarValue`
| ^^^^^^^^^^^^^^^^^^^^ the trait `PartialEq` is not implemented for `NotDefault`
|
= note: `VarValue` is implemented for all `T: Debug + Clone + PartialEq + Any + Send + Sync`
= note: required for `NotDefault` to implement `VarValue`
Expand Down Expand Up @@ -145,7 +145,7 @@ error[E0277]: can't compare `NotDefault` with `NotDefault`
10 | pub fn get_state_invalid(child: impl UiNode, state: impl IntoVar<NotDefault>) -> impl UiNode {
| ----------------- required by a bound introduced by this call
|
= help: the trait `PartialEq` is not implemented for `NotDefault`, which is required by `Box<dyn zng_var::boxed::VarBoxed<NotDefault>>: IntoVar<NotDefault>`
= help: the trait `PartialEq` is not implemented for `NotDefault`
= help: the trait `IntoVar<T>` is implemented for `Box<dyn zng_var::boxed::VarBoxed<T>>`
= note: required for `NotDefault` to implement `VarValue`
= note: required for `Box<dyn zng_var::boxed::VarBoxed<NotDefault>>` to implement `IntoVar<NotDefault>`
Expand All @@ -167,7 +167,7 @@ error[E0277]: can't compare `NotDefault` with `NotDefault`
9 | #[property(CONTEXT)]
| ^^^^^^^^^^^^^^^^^^^^ no implementation for `NotDefault == NotDefault`
|
= help: the trait `PartialEq` is not implemented for `NotDefault`, which is required by `Box<(dyn zng_var::boxed::VarBoxed<NotDefault> + 'static)>: AnyVar`
= help: the trait `PartialEq` is not implemented for `NotDefault`
= help: the following other types implement trait `AnyVar`:
<implementers-list>
= note: required for `Box<(dyn zng_var::boxed::VarBoxed<NotDefault> + 'static)>` to implement `AnyVar`
Expand All @@ -183,7 +183,7 @@ error[E0277]: the trait bound `NotDefault: VarValue` is not satisfied
--> cases/property/prefix_get_default.rs:9:1
|
9 | #[property(CONTEXT)]
| ^^^^^^^^^^^^^^^^^^^^ the trait `PartialEq` is not implemented for `NotDefault`, which is required by `NotDefault: VarValue`
| ^^^^^^^^^^^^^^^^^^^^ the trait `PartialEq` is not implemented for `NotDefault`
|
= note: `VarValue` is implemented for all `T: Debug + Clone + PartialEq + Any + Send + Sync`
= note: required for `NotDefault` to implement `VarValue`
Expand Down
3 changes: 2 additions & 1 deletion tests/macro-tests/cases/property/prefix_has_default.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ error[E0277]: the trait bound `ArcVar<bool>: IntoVar<u32>` is not satisfied
|
= note: `IntoVar<T>` is implemented for all `T: VarValue`
= note: `IntoVar<T>` is implemented for all `V: Var<T>`
= help: the trait `IntoVar<bool>` is implemented for `ArcVar<bool>`
= help: the trait `IntoVar<u32>` is not implemented for `ArcVar<bool>`
but trait `IntoVar<bool>` is implemented for it
= help: for that trait implementation, expected `bool`, found `u32`
note: required by a bound in `has_state_invalid_::args`
--> cases/property/prefix_has_default.rs:10:58
Expand Down
3 changes: 2 additions & 1 deletion tests/macro-tests/cases/property/prefix_is_default.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ error[E0277]: the trait bound `ArcVar<bool>: IntoVar<u32>` is not satisfied
|
= note: `IntoVar<T>` is implemented for all `T: VarValue`
= note: `IntoVar<T>` is implemented for all `V: Var<T>`
= help: the trait `IntoVar<bool>` is implemented for `ArcVar<bool>`
= help: the trait `IntoVar<u32>` is not implemented for `ArcVar<bool>`
but trait `IntoVar<bool>` is implemented for it
= help: for that trait implementation, expected `bool`, found `u32`
note: required by a bound in `is_state_invalid_::args`
--> cases/property/prefix_is_default.rs:10:57
Expand Down

0 comments on commit cb38d2a

Please sign in to comment.