Fixed build tests overwrite.
This commit is contained in:
parent
ed95d3ee49
commit
aed911c633
|
@ -1,119 +1,29 @@
|
|||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type.rs:9:55
|
||||
--> cases/impl_ui_node/delegate_expr_error_incorrect_type.rs:9:27
|
||||
|
|
||||
9 | #[impl_ui_node(delegate = &self.inner, delegate_mut = &mut self.inner)]
|
||||
| ^^^^^^^^^^^^^^^ the trait `UiNode` is not implemented for `NotANode`
|
||||
|
|
||||
note: required by a bound in `delegate_mut`
|
||||
--> $DIR/ui_node.rs:514:28
|
||||
|
|
||||
514 | pub fn delegate_mut<U: UiNode + ?Sized>(d: &mut U) -> &mut U {
|
||||
| ^^^^^^ required by this bound in `delegate_mut`
|
||||
|
||||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type.rs:9:55
|
||||
|
|
||||
9 | #[impl_ui_node(delegate = &self.inner, delegate_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNode` is not implemented for `NotANode`
|
||||
|
|
||||
note: required by `zero_ui::prelude::UiNode::init`
|
||||
--> $DIR/ui_node.rs:132:5
|
||||
|
|
||||
132 | fn init(&mut self, ctx: &mut WidgetContext);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type.rs:9:55
|
||||
|
|
||||
9 | #[impl_ui_node(delegate = &self.inner, delegate_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNode` is not implemented for `NotANode`
|
||||
|
|
||||
note: required by `zero_ui::prelude::UiNode::deinit`
|
||||
--> $DIR/ui_node.rs:135:5
|
||||
|
|
||||
135 | fn deinit(&mut self, ctx: &mut WidgetContext);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type.rs:9:55
|
||||
|
|
||||
9 | #[impl_ui_node(delegate = &self.inner, delegate_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNode` is not implemented for `NotANode`
|
||||
|
|
||||
note: required by `zero_ui::prelude::UiNode::update`
|
||||
--> $DIR/ui_node.rs:189:5
|
||||
|
|
||||
189 | fn update(&mut self, ctx: &mut WidgetContext);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type.rs:9:55
|
||||
|
|
||||
9 | #[impl_ui_node(delegate = &self.inner, delegate_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNode` is not implemented for `NotANode`
|
||||
|
|
||||
note: required by a bound in `zero_ui::prelude::UiNode::event`
|
||||
--> $DIR/ui_node.rs:183:17
|
||||
|
|
||||
183 | fn event<A: EventUpdateArgs>(&mut self, ctx: &mut WidgetContext, args: &A);
|
||||
| ^^^^^^^^^^^^^^^ required by this bound in `zero_ui::prelude::UiNode::event`
|
||||
|
||||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type.rs:9:27
|
||||
|
|
||||
9 | #[impl_ui_node(delegate = &self.inner, delegate_mut = &mut self.inner)]
|
||||
| ^^^^^^^^^^^ the trait `UiNode` is not implemented for `NotANode`
|
||||
| --------------------------^^^^^^^^^^^----------------------------------
|
||||
| | |
|
||||
| | the trait `UiNode` is not implemented for `NotANode`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by a bound in `delegate`
|
||||
--> $DIR/ui_node.rs:510:24
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
510 | pub fn delegate<U: UiNode + ?Sized>(d: &U) -> &U {
|
||||
| ^^^^^^ required by this bound in `delegate`
|
||||
| pub fn delegate(d: &impl UiNode) -> &impl UiNode {
|
||||
| ^^^^^^ required by this bound in `delegate`
|
||||
|
||||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type.rs:9:55
|
||||
--> cases/impl_ui_node/delegate_expr_error_incorrect_type.rs:9:55
|
||||
|
|
||||
9 | #[impl_ui_node(delegate = &self.inner, delegate_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNode` is not implemented for `NotANode`
|
||||
| ------------------------------------------------------^^^^^^^^^^^^^^^--
|
||||
| | |
|
||||
| | the trait `UiNode` is not implemented for `NotANode`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by `render`
|
||||
--> $DIR/ui_node.rs:214:5
|
||||
note: required by a bound in `delegate_mut`
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
214 | fn render(&self, ctx: &mut RenderContext, frame: &mut FrameBuilder);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type.rs:9:55
|
||||
|
|
||||
9 | #[impl_ui_node(delegate = &self.inner, delegate_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNode` is not implemented for `NotANode`
|
||||
|
|
||||
note: required by `render_update`
|
||||
--> $DIR/ui_node.rs:220:5
|
||||
|
|
||||
220 | fn render_update(&self, ctx: &mut RenderContext, update: &mut FrameUpdate);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type.rs:9:55
|
||||
|
|
||||
9 | #[impl_ui_node(delegate = &self.inner, delegate_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNode` is not implemented for `NotANode`
|
||||
|
|
||||
note: required by `arrange`
|
||||
--> $DIR/ui_node.rs:208:5
|
||||
|
|
||||
208 | fn arrange(&mut self, ctx: &mut LayoutContext, final_size: PxSize);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type.rs:9:55
|
||||
|
|
||||
9 | #[impl_ui_node(delegate = &self.inner, delegate_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNode` is not implemented for `NotANode`
|
||||
|
|
||||
note: required by `measure`
|
||||
--> $DIR/ui_node.rs:200:5
|
||||
|
|
||||
200 | fn measure(&mut self, ctx: &mut LayoutContext, available_size: AvailableSize) -> PxSize;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| pub fn delegate_mut(d: &mut impl UiNode) -> &mut impl UiNode {
|
||||
| ^^^^^^ required by this bound in `delegate_mut`
|
||||
|
|
|
@ -1,23 +1,29 @@
|
|||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type_child.rs:9:16
|
||||
--> cases/impl_ui_node/delegate_expr_error_incorrect_type_child.rs:9:16
|
||||
|
|
||||
9 | #[impl_ui_node(child)]
|
||||
| ^^^^^ the trait `UiNode` is not implemented for `NotANode`
|
||||
|
|
||||
note: required by a bound in `delegate_mut`
|
||||
--> $DIR/ui_node.rs:514:28
|
||||
|
|
||||
514 | pub fn delegate_mut<U: UiNode + ?Sized>(d: &mut U) -> &mut U {
|
||||
| ^^^^^^ required by this bound in `delegate_mut`
|
||||
|
||||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_expr_error_incorrect_type_child.rs:9:16
|
||||
|
|
||||
9 | #[impl_ui_node(child)]
|
||||
| ^^^^^ the trait `UiNode` is not implemented for `NotANode`
|
||||
| ---------------^^^^^--
|
||||
| | |
|
||||
| | the trait `UiNode` is not implemented for `NotANode`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by a bound in `delegate`
|
||||
--> $DIR/ui_node.rs:510:24
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
510 | pub fn delegate<U: UiNode + ?Sized>(d: &U) -> &U {
|
||||
| ^^^^^^ required by this bound in `delegate`
|
||||
| pub fn delegate(d: &impl UiNode) -> &impl UiNode {
|
||||
| ^^^^^^ required by this bound in `delegate`
|
||||
|
||||
error[E0277]: the trait bound `NotANode: UiNode` is not satisfied
|
||||
--> cases/impl_ui_node/delegate_expr_error_incorrect_type_child.rs:9:16
|
||||
|
|
||||
9 | #[impl_ui_node(child)]
|
||||
| ---------------^^^^^--
|
||||
| | |
|
||||
| | the trait `UiNode` is not implemented for `NotANode`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by a bound in `delegate_mut`
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
| pub fn delegate_mut(d: &mut impl UiNode) -> &mut impl UiNode {
|
||||
| ^^^^^^ required by this bound in `delegate_mut`
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
error[E0609]: no field `children` on type `&mut Node`
|
||||
--> $DIR/delegate_expr_no_children_field.rs:5:16
|
||||
error[E0609]: no field `children` on type `&Node`
|
||||
--> cases/impl_ui_node/delegate_expr_no_children_field.rs:5:16
|
||||
|
|
||||
5 | #[impl_ui_node(children)]
|
||||
| ^^^^^^^^ unknown field
|
||||
|
||||
error[E0609]: no field `children` on type `&Node`
|
||||
--> $DIR/delegate_expr_no_children_field.rs:5:16
|
||||
error[E0609]: no field `children` on type `&mut Node`
|
||||
--> cases/impl_ui_node/delegate_expr_no_children_field.rs:5:16
|
||||
|
|
||||
5 | #[impl_ui_node(children)]
|
||||
| ^^^^^^^^ unknown field
|
||||
|
|
|
@ -1,23 +1,29 @@
|
|||
error[E0277]: the trait bound `NotUiNode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_iter_items_not_ui_node.rs:9:71
|
||||
--> cases/impl_ui_node/delegate_iter_items_not_ui_node.rs:9:32
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_iter = self.inner.iter(), delegate_iter_mut = self.inner.iter_mut())]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^ the trait `UiNode` is not implemented for `NotUiNode`
|
||||
|
|
||||
note: required by a bound in `delegate_iter_mut`
|
||||
--> $DIR/ui_node.rs:532:75
|
||||
|
|
||||
532 | pub fn delegate_iter_mut<'a>(d: impl IntoIterator<Item = &'a mut impl UiNode>) -> impl IterMutImpl {
|
||||
| ^^^^^^ required by this bound in `delegate_iter_mut`
|
||||
|
||||
error[E0277]: the trait bound `NotUiNode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_iter_items_not_ui_node.rs:9:32
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_iter = self.inner.iter(), delegate_iter_mut = self.inner.iter_mut())]
|
||||
| ^^^^^^^^^^^^^^^^^ the trait `UiNode` is not implemented for `NotUiNode`
|
||||
| -------------------------------^^^^^^^^^^^^^^^^^---------------------------------------------
|
||||
| | |
|
||||
| | the trait `UiNode` is not implemented for `NotUiNode`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by a bound in `delegate_iter`
|
||||
--> $DIR/ui_node.rs:528:67
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
528 | pub fn delegate_iter<'a>(d: impl IntoIterator<Item = &'a impl UiNode>) -> impl IterImpl {
|
||||
| pub fn delegate_iter<'a>(d: impl IntoIterator<Item = &'a impl UiNode>) -> impl IterImpl {
|
||||
| ^^^^^^ required by this bound in `delegate_iter`
|
||||
|
||||
error[E0277]: the trait bound `NotUiNode: UiNode` is not satisfied
|
||||
--> cases/impl_ui_node/delegate_iter_items_not_ui_node.rs:9:71
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_iter = self.inner.iter(), delegate_iter_mut = self.inner.iter_mut())]
|
||||
| ----------------------------------------------------------------------^^^^^^^^^^^^^^^^^^^^^--
|
||||
| | |
|
||||
| | the trait `UiNode` is not implemented for `NotUiNode`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by a bound in `delegate_iter_mut`
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
| pub fn delegate_iter_mut<'a>(d: impl IntoIterator<Item = &'a mut impl UiNode>) -> impl IterMutImpl {
|
||||
| ^^^^^^ required by this bound in `delegate_iter_mut`
|
||||
|
|
|
@ -1,23 +1,29 @@
|
|||
error[E0277]: the trait bound `NotUiNode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_iter_items_not_ui_node_children.rs:9:16
|
||||
--> cases/impl_ui_node/delegate_iter_items_not_ui_node_children.rs:9:16
|
||||
|
|
||||
9 | #[impl_ui_node(children_iter)]
|
||||
| ^^^^^^^^^^^^^ the trait `UiNode` is not implemented for `NotUiNode`
|
||||
|
|
||||
note: required by a bound in `delegate_iter_mut`
|
||||
--> $DIR/ui_node.rs:532:75
|
||||
|
|
||||
532 | pub fn delegate_iter_mut<'a>(d: impl IntoIterator<Item = &'a mut impl UiNode>) -> impl IterMutImpl {
|
||||
| ^^^^^^ required by this bound in `delegate_iter_mut`
|
||||
|
||||
error[E0277]: the trait bound `NotUiNode: UiNode` is not satisfied
|
||||
--> $DIR/delegate_iter_items_not_ui_node_children.rs:9:16
|
||||
|
|
||||
9 | #[impl_ui_node(children_iter)]
|
||||
| ^^^^^^^^^^^^^ the trait `UiNode` is not implemented for `NotUiNode`
|
||||
| ---------------^^^^^^^^^^^^^--
|
||||
| | |
|
||||
| | the trait `UiNode` is not implemented for `NotUiNode`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by a bound in `delegate_iter`
|
||||
--> $DIR/ui_node.rs:528:67
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
528 | pub fn delegate_iter<'a>(d: impl IntoIterator<Item = &'a impl UiNode>) -> impl IterImpl {
|
||||
| pub fn delegate_iter<'a>(d: impl IntoIterator<Item = &'a impl UiNode>) -> impl IterImpl {
|
||||
| ^^^^^^ required by this bound in `delegate_iter`
|
||||
|
||||
error[E0277]: the trait bound `NotUiNode: UiNode` is not satisfied
|
||||
--> cases/impl_ui_node/delegate_iter_items_not_ui_node_children.rs:9:16
|
||||
|
|
||||
9 | #[impl_ui_node(children_iter)]
|
||||
| ---------------^^^^^^^^^^^^^--
|
||||
| | |
|
||||
| | the trait `UiNode` is not implemented for `NotUiNode`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by a bound in `delegate_iter_mut`
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
| pub fn delegate_iter_mut<'a>(d: impl IntoIterator<Item = &'a mut impl UiNode>) -> impl IterMutImpl {
|
||||
| ^^^^^^ required by this bound in `delegate_iter_mut`
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
error[E0609]: no field `children` on type `&mut Node`
|
||||
--> $DIR/delegate_iter_no_children_field.rs:5:16
|
||||
error[E0609]: no field `children` on type `&Node`
|
||||
--> cases/impl_ui_node/delegate_iter_no_children_field.rs:5:16
|
||||
|
|
||||
5 | #[impl_ui_node(children_iter)]
|
||||
| ^^^^^^^^^^^^^ unknown field
|
||||
|
||||
error[E0609]: no field `children` on type `&Node`
|
||||
--> $DIR/delegate_iter_no_children_field.rs:5:16
|
||||
error[E0609]: no field `children` on type `&mut Node`
|
||||
--> cases/impl_ui_node/delegate_iter_no_children_field.rs:5:16
|
||||
|
|
||||
5 | #[impl_ui_node(children_iter)]
|
||||
| ^^^^^^^^^^^^^ unknown field
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
error[E0599]: no method named `iter_mut` found for struct `NoIterMethods` in the current scope
|
||||
--> $DIR/delegate_iter_not_iter_methods.rs:9:82
|
||||
|
|
||||
3 | struct NoIterMethods;
|
||||
| --------------------- method `iter_mut` not found for this
|
||||
...
|
||||
9 | #[impl_ui_node(delegate_iter = self.inner.iter(), delegate_iter_mut = self.inner.iter_mut())]
|
||||
| ^^^^^^^^ method not found in `NoIterMethods`
|
||||
|
||||
error[E0599]: no method named `iter` found for struct `NoIterMethods` in the current scope
|
||||
--> $DIR/delegate_iter_not_iter_methods.rs:9:43
|
||||
--> cases/impl_ui_node/delegate_iter_not_iter_methods.rs:9:43
|
||||
|
|
||||
3 | struct NoIterMethods;
|
||||
| --------------------- method `iter` not found for this
|
||||
...
|
||||
9 | #[impl_ui_node(delegate_iter = self.inner.iter(), delegate_iter_mut = self.inner.iter_mut())]
|
||||
| ^^^^ method not found in `NoIterMethods`
|
||||
|
||||
error[E0599]: no method named `iter_mut` found for struct `NoIterMethods` in the current scope
|
||||
--> cases/impl_ui_node/delegate_iter_not_iter_methods.rs:9:82
|
||||
|
|
||||
3 | struct NoIterMethods;
|
||||
| --------------------- method `iter_mut` not found for this
|
||||
...
|
||||
9 | #[impl_ui_node(delegate_iter = self.inner.iter(), delegate_iter_mut = self.inner.iter_mut())]
|
||||
| ^^^^^^^^ method not found in `NoIterMethods`
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
error[E0599]: no method named `iter_mut` found for struct `NoIterMethods` in the current scope
|
||||
--> $DIR/delegate_iter_not_iter_methods_children_iter.rs:9:16
|
||||
|
|
||||
3 | struct NoIterMethods;
|
||||
| --------------------- method `iter_mut` not found for this
|
||||
...
|
||||
9 | #[impl_ui_node(children_iter)]
|
||||
| ^^^^^^^^^^^^^ method not found in `NoIterMethods`
|
||||
|
||||
error[E0599]: no method named `iter` found for struct `NoIterMethods` in the current scope
|
||||
--> $DIR/delegate_iter_not_iter_methods_children_iter.rs:9:16
|
||||
--> cases/impl_ui_node/delegate_iter_not_iter_methods_children_iter.rs:9:16
|
||||
|
|
||||
3 | struct NoIterMethods;
|
||||
| --------------------- method `iter` not found for this
|
||||
...
|
||||
9 | #[impl_ui_node(children_iter)]
|
||||
| ^^^^^^^^^^^^^ method not found in `NoIterMethods`
|
||||
|
||||
error[E0599]: no method named `iter_mut` found for struct `NoIterMethods` in the current scope
|
||||
--> cases/impl_ui_node/delegate_iter_not_iter_methods_children_iter.rs:9:16
|
||||
|
|
||||
3 | struct NoIterMethods;
|
||||
| --------------------- method `iter_mut` not found for this
|
||||
...
|
||||
9 | #[impl_ui_node(children_iter)]
|
||||
| ^^^^^^^^^^^^^ method not found in `NoIterMethods`
|
||||
|
|
|
@ -1,119 +1,29 @@
|
|||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type.rs:9:65
|
||||
--> cases/impl_ui_node/delegate_list_expr_error_incorrect_type.rs:9:32
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_list = &self.inner, delegate_list_mut = &mut self.inner)]
|
||||
| ^^^^^^^^^^^^^^^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
|
|
||||
note: required by a bound in `delegate_list_mut`
|
||||
--> $DIR/ui_node.rs:523:33
|
||||
|
|
||||
523 | pub fn delegate_list_mut<U: UiNodeList + ?Sized>(d: &mut U) -> &mut U {
|
||||
| ^^^^^^^^^^ required by this bound in `delegate_list_mut`
|
||||
|
||||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type.rs:9:65
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_list = &self.inner, delegate_list_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
|
|
||||
note: required by `zero_ui::prelude::UiNodeList::init_all`
|
||||
--> $DIR/ui_list.rs:37:5
|
||||
|
|
||||
37 | fn init_all(&mut self, ctx: &mut WidgetContext);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type.rs:9:65
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_list = &self.inner, delegate_list_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
|
|
||||
note: required by `zero_ui::prelude::UiNodeList::deinit_all`
|
||||
--> $DIR/ui_list.rs:40:5
|
||||
|
|
||||
40 | fn deinit_all(&mut self, ctx: &mut WidgetContext);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type.rs:9:65
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_list = &self.inner, delegate_list_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
|
|
||||
note: required by `zero_ui::prelude::UiNodeList::update_all`
|
||||
--> $DIR/ui_list.rs:43:5
|
||||
|
|
||||
43 | fn update_all(&mut self, ctx: &mut WidgetContext);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type.rs:9:65
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_list = &self.inner, delegate_list_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
|
|
||||
note: required by a bound in `zero_ui::prelude::UiNodeList::event_all`
|
||||
--> $DIR/ui_list.rs:46:22
|
||||
|
|
||||
46 | fn event_all<EU: EventUpdateArgs>(&mut self, ctx: &mut WidgetContext, args: &EU);
|
||||
| ^^^^^^^^^^^^^^^ required by this bound in `zero_ui::prelude::UiNodeList::event_all`
|
||||
|
||||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type.rs:9:32
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_list = &self.inner, delegate_list_mut = &mut self.inner)]
|
||||
| ^^^^^^^^^^^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
| -------------------------------^^^^^^^^^^^---------------------------------------
|
||||
| | |
|
||||
| | the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by a bound in `delegate_list`
|
||||
--> $DIR/ui_node.rs:519:29
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
519 | pub fn delegate_list<U: UiNodeList + ?Sized>(d: &U) -> &U {
|
||||
| ^^^^^^^^^^ required by this bound in `delegate_list`
|
||||
| pub fn delegate_list(d: &impl UiNodeList) -> &impl UiNodeList {
|
||||
| ^^^^^^^^^^ required by this bound in `delegate_list`
|
||||
|
||||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type.rs:9:65
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_list = &self.inner, delegate_list_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
|
|
||||
note: required by a bound in `zero_ui::prelude::UiNodeList::render_all`
|
||||
--> $DIR/ui_list.rs:92:12
|
||||
|
|
||||
92 | O: FnMut(usize) -> PxPoint;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `zero_ui::prelude::UiNodeList::render_all`
|
||||
|
||||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type.rs:9:65
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_list = &self.inner, delegate_list_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
|
|
||||
note: required by `zero_ui::prelude::UiNodeList::render_update_all`
|
||||
--> $DIR/ui_list.rs:98:5
|
||||
|
|
||||
98 | fn render_update_all(&self, ctx: &mut RenderContext, update: &mut FrameUpdate);
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type.rs:9:65
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_list = &self.inner, delegate_list_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
|
|
||||
note: required by a bound in `zero_ui::prelude::UiNodeList::arrange_all`
|
||||
--> $DIR/ui_list.rs:78:12
|
||||
|
|
||||
78 | F: FnMut(usize, &mut LayoutContext) -> PxSize;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `zero_ui::prelude::UiNodeList::arrange_all`
|
||||
|
||||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type.rs:9:65
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_list = &self.inner, delegate_list_mut = &mut self.inner)]
|
||||
| ^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
|
|
||||
note: required by a bound in `zero_ui::prelude::UiNodeList::measure_all`
|
||||
--> $DIR/ui_list.rs:62:23
|
||||
|
|
||||
62 | fn measure_all<A, D>(&mut self, ctx: &mut LayoutContext, available_size: A, desired_size: D)
|
||||
| ^ required by this bound in `zero_ui::prelude::UiNodeList::measure_all`
|
||||
--> cases/impl_ui_node/delegate_list_expr_error_incorrect_type.rs:9:65
|
||||
|
|
||||
9 | #[impl_ui_node(delegate_list = &self.inner, delegate_list_mut = &mut self.inner)]
|
||||
| ----------------------------------------------------------------^^^^^^^^^^^^^^^--
|
||||
| | |
|
||||
| | the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by a bound in `delegate_list_mut`
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
| pub fn delegate_list_mut(d: &mut impl UiNodeList) -> &mut impl UiNodeList {
|
||||
| ^^^^^^^^^^ required by this bound in `delegate_list_mut`
|
||||
|
|
|
@ -1,23 +1,29 @@
|
|||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type_children.rs:9:16
|
||||
--> cases/impl_ui_node/delegate_list_expr_error_incorrect_type_children.rs:9:16
|
||||
|
|
||||
9 | #[impl_ui_node(children)]
|
||||
| ^^^^^^^^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
|
|
||||
note: required by a bound in `delegate_list_mut`
|
||||
--> $DIR/ui_node.rs:523:33
|
||||
|
|
||||
523 | pub fn delegate_list_mut<U: UiNodeList + ?Sized>(d: &mut U) -> &mut U {
|
||||
| ^^^^^^^^^^ required by this bound in `delegate_list_mut`
|
||||
|
||||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> $DIR/delegate_list_expr_error_incorrect_type_children.rs:9:16
|
||||
|
|
||||
9 | #[impl_ui_node(children)]
|
||||
| ^^^^^^^^ the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
| ---------------^^^^^^^^--
|
||||
| | |
|
||||
| | the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by a bound in `delegate_list`
|
||||
--> $DIR/ui_node.rs:519:29
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
519 | pub fn delegate_list<U: UiNodeList + ?Sized>(d: &U) -> &U {
|
||||
| ^^^^^^^^^^ required by this bound in `delegate_list`
|
||||
| pub fn delegate_list(d: &impl UiNodeList) -> &impl UiNodeList {
|
||||
| ^^^^^^^^^^ required by this bound in `delegate_list`
|
||||
|
||||
error[E0277]: the trait bound `NotANodeList: UiNodeList` is not satisfied
|
||||
--> cases/impl_ui_node/delegate_list_expr_error_incorrect_type_children.rs:9:16
|
||||
|
|
||||
9 | #[impl_ui_node(children)]
|
||||
| ---------------^^^^^^^^--
|
||||
| | |
|
||||
| | the trait `UiNodeList` is not implemented for `NotANodeList`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by a bound in `delegate_list_mut`
|
||||
--> $WORKSPACE/zero-ui-core/src/ui_node.rs
|
||||
|
|
||||
| pub fn delegate_list_mut(d: &mut impl UiNodeList) -> &mut impl UiNodeList {
|
||||
| ^^^^^^^^^^ required by this bound in `delegate_list_mut`
|
||||
|
|
|
@ -1,30 +1,30 @@
|
|||
error[E0283]: type annotations needed
|
||||
--> $DIR/allowed_in_when_validation.rs:5:44
|
||||
--> cases/property/allowed_in_when_validation.rs:5:44
|
||||
|
|
||||
5 | pub fn invalid1(child: impl UiNode, value: bool) -> impl UiNode {
|
||||
| ^^^^ cannot infer type for type parameter `T` declared on the trait `IntoVar`
|
||||
|
|
||||
= note: cannot satisfy `_: VarValue`
|
||||
note: required by `allowed_in_when_property_requires_IntoVar_members`
|
||||
--> $DIR/var.rs:235:5
|
||||
--> $WORKSPACE/zero-ui-core/src/var.rs
|
||||
|
|
||||
235 | fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `<impl invalid2_Args as invalid2_Args>::T_value: Clone` is not satisfied
|
||||
--> $DIR/allowed_in_when_validation.rs:12:44
|
||||
--> cases/property/allowed_in_when_validation.rs:12:44
|
||||
|
|
||||
12 | pub fn invalid2(child: impl UiNode, value: impl UiNode) -> impl UiNode {
|
||||
| ^^^^ the trait `Clone` is not implemented for `<impl invalid2_Args as invalid2_Args>::T_value`
|
||||
|
|
||||
note: required by `allowed_in_when_property_requires_IntoVar_members`
|
||||
--> $DIR/var.rs:235:5
|
||||
--> $WORKSPACE/zero-ui-core/src/var.rs
|
||||
|
|
||||
235 | fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `<impl invalid2_Args as invalid2_Args>::T_value` doesn't implement `Debug`
|
||||
--> $DIR/allowed_in_when_validation.rs:12:44
|
||||
--> cases/property/allowed_in_when_validation.rs:12:44
|
||||
|
|
||||
12 | pub fn invalid2(child: impl UiNode, value: impl UiNode) -> impl UiNode {
|
||||
| ^^^^ `<impl invalid2_Args as invalid2_Args>::T_value` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
||||
|
@ -33,26 +33,28 @@ error[E0277]: `<impl invalid2_Args as invalid2_Args>::T_value` doesn't implement
|
|||
= note: required because of the requirements on the impl of `VarValue` for `<impl invalid2_Args as invalid2_Args>::T_value`
|
||||
= note: required because of the requirements on the impl of `zero_ui::prelude::IntoVar<<impl invalid2_Args as invalid2_Args>::T_value>` for `<impl invalid2_Args as invalid2_Args>::T_value`
|
||||
note: required by `allowed_in_when_property_requires_IntoVar_members`
|
||||
--> $DIR/var.rs:235:5
|
||||
--> $WORKSPACE/zero-ui-core/src/var.rs
|
||||
|
|
||||
235 | fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: the trait bound `OwnedVar<<impl invalid2_Args as invalid2_Args>::T_value>: zero_ui::prelude::UiNode` is not satisfied
|
||||
--> $DIR/allowed_in_when_validation.rs:12:44
|
||||
--> cases/property/allowed_in_when_validation.rs:12:44
|
||||
|
|
||||
11 | #[property(context)] // error because no allowed_in_when = false
|
||||
| -------------------- required by a bound introduced by this call
|
||||
12 | pub fn invalid2(child: impl UiNode, value: impl UiNode) -> impl UiNode {
|
||||
| ^^^^ the trait `zero_ui::prelude::UiNode` is not implemented for `OwnedVar<<impl invalid2_Args as invalid2_Args>::T_value>`
|
||||
|
|
||||
note: required by `invalid2_ArgsImpl::<T_value>::new`
|
||||
--> $DIR/allowed_in_when_validation.rs:11:1
|
||||
--> cases/property/allowed_in_when_validation.rs:11:1
|
||||
|
|
||||
11 | #[property(context)] // error because no allowed_in_when = false
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: `<impl invalid2_Args as invalid2_Args>::T_value` doesn't implement `Debug`
|
||||
--> $DIR/allowed_in_when_validation.rs:11:1
|
||||
--> cases/property/allowed_in_when_validation.rs:11:1
|
||||
|
|
||||
11 | #[property(context)] // error because no allowed_in_when = false
|
||||
| ^^^^^^^^^^^^^^^^^^^^ `<impl invalid2_Args as invalid2_Args>::T_value` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
||||
|
@ -60,22 +62,22 @@ error[E0277]: `<impl invalid2_Args as invalid2_Args>::T_value` doesn't implement
|
|||
= help: the trait `Debug` is not implemented for `<impl invalid2_Args as invalid2_Args>::T_value`
|
||||
= note: required because of the requirements on the impl of `VarValue` for `<impl invalid2_Args as invalid2_Args>::T_value`
|
||||
note: required by a bound in `OwnedVar`
|
||||
--> $DIR/owned.rs:5:24
|
||||
--> $WORKSPACE/zero-ui-core/src/var/owned.rs
|
||||
|
|
||||
5 | pub struct OwnedVar<T: VarValue>(pub T);
|
||||
| pub struct OwnedVar<T: VarValue>(pub T);
|
||||
| ^^^^^^^^ required by this bound in `OwnedVar`
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `<impl invalid2_Args as invalid2_Args>::T_value: Clone` is not satisfied
|
||||
--> $DIR/allowed_in_when_validation.rs:11:1
|
||||
--> cases/property/allowed_in_when_validation.rs:11:1
|
||||
|
|
||||
11 | #[property(context)] // error because no allowed_in_when = false
|
||||
| ^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `<impl invalid2_Args as invalid2_Args>::T_value`
|
||||
|
|
||||
= note: required because of the requirements on the impl of `VarValue` for `<impl invalid2_Args as invalid2_Args>::T_value`
|
||||
note: required by a bound in `OwnedVar`
|
||||
--> $DIR/owned.rs:5:24
|
||||
--> $WORKSPACE/zero-ui-core/src/var/owned.rs
|
||||
|
|
||||
5 | pub struct OwnedVar<T: VarValue>(pub T);
|
||||
| pub struct OwnedVar<T: VarValue>(pub T);
|
||||
| ^^^^^^^^ required by this bound in `OwnedVar`
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
error: expected `default("arg1", ..)` or `default(arg1: "arg1", ..)`
|
||||
--> $DIR/defaults.rs:3:21
|
||||
--> cases/property/defaults.rs:3:21
|
||||
|
|
||||
3 | #[property(context, default)]
|
||||
| ^^^^^^^
|
||||
|
||||
error: expected `default("arg1", ..)` or `default(arg1: "arg1", ..)`
|
||||
--> $DIR/defaults.rs:9:28
|
||||
--> cases/property/defaults.rs:9:28
|
||||
|
|
||||
9 | #[property(context, default())]
|
||||
| ^^
|
||||
|
||||
error: missing field `b` in property initializer
|
||||
--> $DIR/defaults.rs:21:28
|
||||
--> cases/property/defaults.rs:21:28
|
||||
|
|
||||
21 | #[property(context, default(a: true))]
|
||||
| ^^^^^^^^^
|
||||
|
||||
error: unknown field `c`
|
||||
--> $DIR/defaults.rs:33:47
|
||||
--> cases/property/defaults.rs:33:47
|
||||
|
|
||||
33 | #[property(context, default(a: true, b: 2555, c: "ABC"))]
|
||||
| ^
|
||||
|
||||
error[E0061]: this function takes 2 arguments but 1 argument was supplied
|
||||
--> $DIR/defaults.rs:15:28
|
||||
--> cases/property/defaults.rs:15:28
|
||||
|
|
||||
15 | #[property(context, default(true))]
|
||||
| ^----^
|
||||
|
@ -32,20 +32,14 @@ error[E0061]: this function takes 2 arguments but 1 argument was supplied
|
|||
| expected 2 arguments
|
||||
|
|
||||
note: associated function defined here
|
||||
--> $DIR/defaults.rs:15:1
|
||||
|
|
||||
15 | #[property(context, default(true))]
|
||||
| _-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| |_|
|
||||
| ||
|
||||
16 | || pub fn incorrect_default_args_count_u_1(child: impl UiNode, a: impl IntoVar<bool>, b: impl IntoVar<u32>) -> impl UiNode {
|
||||
| ||____________________________________________________________-______________________-
|
||||
| |____________________________________________________________|
|
||||
--> cases/property/defaults.rs:15:1
|
||||
|
|
||||
15 | #[property(context, default(true))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
|
||||
--> $DIR/defaults.rs:27:28
|
||||
--> cases/property/defaults.rs:27:28
|
||||
|
|
||||
27 | #[property(context, default(true, 2555, "ABC"))]
|
||||
| ^----^^----^^-----^
|
||||
|
@ -54,84 +48,92 @@ error[E0061]: this function takes 2 arguments but 3 arguments were supplied
|
|||
| expected 2 arguments
|
||||
|
|
||||
note: associated function defined here
|
||||
--> $DIR/defaults.rs:27:1
|
||||
|
|
||||
27 | #[property(context, default(true, 2555, "ABC"))]
|
||||
| _-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| |_|
|
||||
| ||
|
||||
28 | || pub fn incorrect_default_args_count_u_2(child: impl UiNode, a: impl IntoVar<bool>, b: impl IntoVar<u32>) -> impl UiNode {
|
||||
| ||____________________________________________________________-______________________-
|
||||
| |____________________________________________________________|
|
||||
--> cases/property/defaults.rs:27:1
|
||||
|
|
||||
27 | #[property(context, default(true, 2555, "ABC"))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `{integer}: zero_ui::prelude::IntoVar<bool>` is not satisfied
|
||||
--> $DIR/defaults.rs:39:28
|
||||
--> cases/property/defaults.rs:39:35
|
||||
|
|
||||
39 | #[property(context, default(2555, true))]
|
||||
| ^^^^^^^^^^^^ the trait `zero_ui::prelude::IntoVar<bool>` is not implemented for `{integer}`
|
||||
| -------^^^^-
|
||||
| | |
|
||||
| | the trait `zero_ui::prelude::IntoVar<bool>` is not implemented for `{integer}`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<&'static [u8; N] as zero_ui::prelude::IntoVar<ImageSource>>
|
||||
<&'static [u8; N] as zero_ui::prelude::IntoVar<WindowIcon>>
|
||||
<&'static [u8] as zero_ui::prelude::IntoVar<ImageSource>>
|
||||
<&'static [u8] as zero_ui::prelude::IntoVar<WindowIcon>>
|
||||
and 325 others
|
||||
and 344 others
|
||||
note: required by `invalid_default_args_types_u_2_ArgsImpl::<T_a, T_b>::new`
|
||||
--> $DIR/defaults.rs:39:1
|
||||
--> cases/property/defaults.rs:39:1
|
||||
|
|
||||
39 | #[property(context, default(2555, true))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `bool: zero_ui::prelude::IntoVar<u32>` is not satisfied
|
||||
--> $DIR/defaults.rs:39:35
|
||||
--> cases/property/defaults.rs:39:35
|
||||
|
|
||||
39 | #[property(context, default(2555, true))]
|
||||
| ^^^^
|
||||
| |
|
||||
| expected an implementor of trait `zero_ui::prelude::IntoVar<u32>`
|
||||
| help: consider borrowing here: `&true`
|
||||
| -------^^^^-
|
||||
| | |
|
||||
| | expected an implementor of trait `zero_ui::prelude::IntoVar<u32>`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by `invalid_default_args_types_u_2_ArgsImpl::<T_a, T_b>::new`
|
||||
--> $DIR/defaults.rs:39:1
|
||||
--> cases/property/defaults.rs:39:1
|
||||
|
|
||||
39 | #[property(context, default(2555, true))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: consider borrowing here
|
||||
|
|
||||
39 | #[property(context, default(2555, &true))]
|
||||
| +
|
||||
|
||||
error[E0277]: the trait bound `{integer}: zero_ui::prelude::IntoVar<bool>` is not satisfied
|
||||
--> $DIR/defaults.rs:45:28
|
||||
--> cases/property/defaults.rs:45:41
|
||||
|
|
||||
45 | #[property(context, default(a: 2555, b: true))]
|
||||
| ^^^^^^^^^^^^^^^^^^ the trait `zero_ui::prelude::IntoVar<bool>` is not implemented for `{integer}`
|
||||
| -------------^^^^-
|
||||
| | |
|
||||
| | the trait `zero_ui::prelude::IntoVar<bool>` is not implemented for `{integer}`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
<&'static [u8; N] as zero_ui::prelude::IntoVar<ImageSource>>
|
||||
<&'static [u8; N] as zero_ui::prelude::IntoVar<WindowIcon>>
|
||||
<&'static [u8] as zero_ui::prelude::IntoVar<ImageSource>>
|
||||
<&'static [u8] as zero_ui::prelude::IntoVar<WindowIcon>>
|
||||
and 325 others
|
||||
and 344 others
|
||||
note: required by `invalid_default_args_types_n_2_ArgsImpl::<T_a, T_b>::new`
|
||||
--> $DIR/defaults.rs:45:1
|
||||
--> cases/property/defaults.rs:45:1
|
||||
|
|
||||
45 | #[property(context, default(a: 2555, b: true))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0277]: the trait bound `bool: zero_ui::prelude::IntoVar<u32>` is not satisfied
|
||||
--> $DIR/defaults.rs:45:41
|
||||
--> cases/property/defaults.rs:45:41
|
||||
|
|
||||
45 | #[property(context, default(a: 2555, b: true))]
|
||||
| ^^^^
|
||||
| |
|
||||
| expected an implementor of trait `zero_ui::prelude::IntoVar<u32>`
|
||||
| help: consider borrowing here: `&true`
|
||||
| -------------^^^^-
|
||||
| | |
|
||||
| | expected an implementor of trait `zero_ui::prelude::IntoVar<u32>`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by `invalid_default_args_types_n_2_ArgsImpl::<T_a, T_b>::new`
|
||||
--> $DIR/defaults.rs:45:1
|
||||
--> cases/property/defaults.rs:45:1
|
||||
|
|
||||
45 | #[property(context, default(a: 2555, b: true))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: consider borrowing here
|
||||
|
|
||||
45 | #[property(context, default(a: 2555, b: &true))]
|
||||
| +
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
error[E0277]: the trait bound `NoDebug: Clone` is not satisfied
|
||||
--> $DIR/input_no_debug.rs:14:37
|
||||
--> cases/property/input_no_debug.rs:14:37
|
||||
|
|
||||
14 | pub fn bar(child: impl UiNode, bar: NoDebug) -> impl UiNode {
|
||||
| ^^^^^^^ the trait `Clone` is not implemented for `NoDebug`
|
||||
|
|
||||
note: required by `allowed_in_when_property_requires_IntoVar_members`
|
||||
--> $DIR/var.rs:235:5
|
||||
--> $WORKSPACE/zero-ui-core/src/var.rs
|
||||
|
|
||||
235 | fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0277]: `NoDebug` doesn't implement `Debug`
|
||||
--> $DIR/input_no_debug.rs:14:37
|
||||
--> cases/property/input_no_debug.rs:14:37
|
||||
|
|
||||
14 | pub fn bar(child: impl UiNode, bar: NoDebug) -> impl UiNode {
|
||||
| ^^^^^^^ `NoDebug` cannot be formatted using `{:?}`
|
||||
|
@ -21,13 +21,13 @@ error[E0277]: `NoDebug` doesn't implement `Debug`
|
|||
= note: required because of the requirements on the impl of `VarValue` for `NoDebug`
|
||||
= note: required because of the requirements on the impl of `IntoVar<NoDebug>` for `NoDebug`
|
||||
note: required by `allowed_in_when_property_requires_IntoVar_members`
|
||||
--> $DIR/var.rs:235:5
|
||||
--> $WORKSPACE/zero-ui-core/src/var.rs
|
||||
|
|
||||
235 | fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/input_no_debug.rs:14:37
|
||||
--> cases/property/input_no_debug.rs:14:37
|
||||
|
|
||||
14 | pub fn bar(child: impl UiNode, bar: NoDebug) -> impl UiNode {
|
||||
| ^^^^^^^ expected struct `NoDebug`, found struct `OwnedVar`
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0446]: private type `PrivateFoo` in public interface
|
||||
--> $DIR/private_value_in_public_interface.rs:6:1
|
||||
--> cases/property/private_value_in_public_interface.rs:6:1
|
||||
|
|
||||
3 | struct PrivateFoo;
|
||||
| ------------------ `PrivateFoo` declared as private
|
||||
|
@ -8,7 +8,7 @@ error[E0446]: private type `PrivateFoo` in public interface
|
|||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
|
||||
|
||||
error[E0446]: private type `PrivateFoo` in public interface
|
||||
--> $DIR/private_value_in_public_interface.rs:5:1
|
||||
--> cases/property/private_value_in_public_interface.rs:5:1
|
||||
|
|
||||
3 | struct PrivateFoo;
|
||||
| ------------------ `PrivateFoo` declared as private
|
||||
|
@ -19,7 +19,7 @@ error[E0446]: private type `PrivateFoo` in public interface
|
|||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
warning: private type `PrivateFoo` in public interface (error E0446)
|
||||
--> $DIR/private_value_in_public_interface.rs:5:1
|
||||
--> cases/property/private_value_in_public_interface.rs:5:1
|
||||
|
|
||||
5 | #[property(context, allowed_in_when = false)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -29,18 +29,8 @@ warning: private type `PrivateFoo` in public interface (error E0446)
|
|||
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
|
||||
= note: this warning originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
warning: private type `PrivateFoo` in public interface (error E0446)
|
||||
--> $DIR/private_value_in_public_interface.rs:5:1
|
||||
|
|
||||
5 | #[property(context, allowed_in_when = false)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
||||
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
|
||||
= note: for more information, see issue #34537 <https://github.com/rust-lang/rust/issues/34537>
|
||||
= note: this warning originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error[E0446]: private type `PrivateFoo` in public interface
|
||||
--> $DIR/private_value_in_public_interface.rs:6:1
|
||||
--> cases/property/private_value_in_public_interface.rs:6:1
|
||||
|
|
||||
3 | struct PrivateFoo;
|
||||
| ------------------ `PrivateFoo` declared as private
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
error: expected `=`
|
||||
--> $DIR/attr_allowed_in_when.rs:9:11
|
||||
--> cases/widget/attr_allowed_in_when.rs:9:11
|
||||
|
|
||||
9 | #[allowed_in_when]
|
||||
| ^^^^^^^^^^^^^^^
|
||||
|
||||
error: expected `=`
|
||||
--> $DIR/attr_allowed_in_when.rs:12:26
|
||||
--> cases/widget/attr_allowed_in_when.rs:12:26
|
||||
|
|
||||
12 | #[allowed_in_when(false)]
|
||||
| ^^^^^^^
|
||||
| ^
|
||||
|
||||
error: expected `=`
|
||||
--> $DIR/attr_allowed_in_when.rs:15:26
|
||||
--> cases/widget/attr_allowed_in_when.rs:15:26
|
||||
|
|
||||
15 | #[allowed_in_when: false]
|
||||
| ^
|
||||
|
||||
error: unexpected end of input, expected boolean literal
|
||||
--> $DIR/attr_allowed_in_when.rs:18:27
|
||||
--> cases/widget/attr_allowed_in_when.rs:18:27
|
||||
|
|
||||
18 | #[allowed_in_when =]
|
||||
| ^
|
||||
|
||||
error: expected boolean literal
|
||||
--> $DIR/attr_allowed_in_when.rs:21:29
|
||||
--> cases/widget/attr_allowed_in_when.rs:21:29
|
||||
|
|
||||
21 | #[allowed_in_when = 0]
|
||||
| ^
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
error[E0283]: type annotations needed
|
||||
--> $DIR/decl_allowed_in_when_validation.rs:9:13
|
||||
--> cases/widget/decl_allowed_in_when_validation.rs:9:13
|
||||
|
|
||||
9 | foo(&'static str) = "";
|
||||
| ^ cannot infer type for type parameter `T` declared on the trait `IntoVar`
|
||||
|
|
||||
= note: cannot satisfy `_: VarValue`
|
||||
note: required by `allowed_in_when_property_requires_IntoVar_members`
|
||||
--> $DIR/var.rs:235:5
|
||||
--> $WORKSPACE/zero-ui-core/src/var.rs
|
||||
|
|
||||
235 | fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| fn allowed_in_when_property_requires_IntoVar_members(&self) -> Self::Var {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error: expected `when`, `child`, `remove` or a property declaration
|
||||
--> $DIR/invalid_properties_item.rs:6:9
|
||||
--> cases/widget/invalid_properties_item.rs:6:9
|
||||
|
|
||||
6 | {}
|
||||
| ^^
|
||||
| ^
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
error: expected inherited property ident, found path
|
||||
--> $DIR/invalid_remove.rs:9:18
|
||||
--> cases/widget/invalid_remove.rs:9:18
|
||||
|
|
||||
9 | remove { zero_ui::properties::cursor }
|
||||
| ^^^^^^^
|
||||
|
||||
error: expected inherited property ident
|
||||
--> $DIR/invalid_remove.rs:9:16
|
||||
--> cases/widget/invalid_remove.rs:9:46
|
||||
|
|
||||
9 | remove { zero_ui::properties::cursor }
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
| ^
|
||||
|
||||
error: cannot remove, property `margin` is not inherited
|
||||
--> $DIR/invalid_remove.rs:8:18
|
||||
--> cases/widget/invalid_remove.rs:8:18
|
||||
|
|
||||
8 | remove { margin }
|
||||
| ^^^^^^
|
||||
|
||||
warning: unused import: `zero_ui::properties::margin`
|
||||
--> $DIR/invalid_remove.rs:5:9
|
||||
--> cases/widget/invalid_remove.rs:5:9
|
||||
|
|
||||
5 | use zero_ui::properties::margin;
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
error[E0433]: failed to resolve: could not find `not` in the crate root
|
||||
--> $DIR/module_path_is_invalid.rs:3:18
|
||||
--> cases/widget/module_path_is_invalid.rs:3:18
|
||||
|
|
||||
3 | #[widget($crate::not::a::valid::path)]
|
||||
| ^^^ could not find `not` in the crate root
|
||||
|
|
||||
= note: this error originates in the macro `__test_widget_assert_mod_path_u435` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
= note: this error originates in the macro `__test_widget_assert_mod_path_u464` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
error[E0277]: the trait bound `<foo_type_must_match_property_definition_0 as __p_foo_Args>::T_foo: zero_ui::prelude::IntoVar<NotFoo>` is not satisfied
|
||||
--> $DIR/new_fn_mismatched_capture_type1.rs:17:23
|
||||
--> cases/widget/new_fn_mismatched_capture_type1.rs:17:23
|
||||
|
|
||||
3 | #[widget($crate::test_widget)]
|
||||
| ------------------------------ required by a bound introduced by this call
|
||||
...
|
||||
17 | fn new_child(foo: impl IntoVar<NotFoo>) -> NilUiNode {
|
||||
| ^^^^ the trait `zero_ui::prelude::IntoVar<NotFoo>` is not implemented for `<foo_type_must_match_property_definition_0 as __p_foo_Args>::T_foo`
|
||||
|
|
||||
note: required by a bound in `test_widget::new_child`
|
||||
--> $DIR/new_fn_mismatched_capture_type1.rs:17:28
|
||||
--> cases/widget/new_fn_mismatched_capture_type1.rs:17:28
|
||||
|
|
||||
17 | fn new_child(foo: impl IntoVar<NotFoo>) -> NilUiNode {
|
||||
| ^^^^^^^^^^^^^^^ required by this bound in `test_widget::new_child`
|
||||
|
|
|
@ -1,23 +1,23 @@
|
|||
error: `new` cannot be `async`
|
||||
--> $DIR/new_fns_cannot_be_async.rs:7:5
|
||||
--> cases/widget/new_fns_cannot_be_async.rs:7:5
|
||||
|
|
||||
7 | async fn new(child: impl UiNode, id: impl Into<WidgetId>) -> impl UiNode {
|
||||
7 | async fn new(child: impl UiNode, id: impl IntoValue<WidgetId>) -> impl UiNode {
|
||||
| ^^^^^
|
||||
|
||||
error: `new_child` cannot be `async`
|
||||
--> $DIR/new_fns_cannot_be_async.rs:10:5
|
||||
--> cases/widget/new_fns_cannot_be_async.rs:10:5
|
||||
|
|
||||
10 | async fn new_child() -> NilUiNode {
|
||||
| ^^^^^
|
||||
|
||||
error[E0277]: the trait bound `impl Future: UiNode` is not satisfied
|
||||
--> $DIR/new_fns_cannot_be_async.rs:10:29
|
||||
--> cases/widget/new_fns_cannot_be_async.rs:10:29
|
||||
|
|
||||
10 | async fn new_child() -> NilUiNode {
|
||||
| ^^^^^^^^^ the trait `UiNode` is not implemented for `impl Future`
|
||||
|
||||
error[E0277]: the trait bound `impl Future: UiNode` is not satisfied
|
||||
--> $DIR/new_fns_cannot_be_async.rs:7:66
|
||||
--> cases/widget/new_fns_cannot_be_async.rs:7:71
|
||||
|
|
||||
7 | async fn new(child: impl UiNode, id: impl Into<WidgetId>) -> impl UiNode {
|
||||
| ^^^^^^^^^^^ the trait `UiNode` is not implemented for `impl Future`
|
||||
7 | async fn new(child: impl UiNode, id: impl IntoValue<WidgetId>) -> impl UiNode {
|
||||
| ^^^^^^^^^^^ the trait `UiNode` is not implemented for `impl Future`
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
error: `new` cannot be `extern`
|
||||
--> $DIR/new_fns_cannot_be_extern.rs:7:5
|
||||
--> cases/widget/new_fns_cannot_be_extern.rs:7:5
|
||||
|
|
||||
7 | extern "C" fn new(child: impl UiNode, id: impl Into<WidgetId>) -> impl UiNode {
|
||||
7 | extern "C" fn new(child: impl UiNode, id: impl IntoValue<WidgetId>) -> impl UiNode {
|
||||
| ^^^^^^
|
||||
|
||||
error: `new_child` cannot be `extern`
|
||||
--> $DIR/new_fns_cannot_be_extern.rs:10:5
|
||||
--> cases/widget/new_fns_cannot_be_extern.rs:10:5
|
||||
|
|
||||
10 | extern "C" fn new_child() -> NilUiNode {
|
||||
| ^^^^^^
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
error: `new` cannot be `unsafe`
|
||||
--> $DIR/new_fns_cannot_be_unsafe.rs:7:5
|
||||
--> cases/widget/new_fns_cannot_be_unsafe.rs:7:5
|
||||
|
|
||||
7 | unsafe fn new(child: impl UiNode, id: impl Into<WidgetId>) -> impl UiNode {
|
||||
7 | unsafe fn new(child: impl UiNode, id: impl IntoValue<WidgetId>) -> impl UiNode {
|
||||
| ^^^^^^
|
||||
|
||||
error: `new_child` cannot be `unsafe`
|
||||
--> $DIR/new_fns_cannot_be_unsafe.rs:10:5
|
||||
--> cases/widget/new_fns_cannot_be_unsafe.rs:10:5
|
||||
|
|
||||
10 | unsafe fn new_child() -> NilUiNode {
|
||||
| ^^^^^^
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
error: `new` does not support `const` generics
|
||||
--> $DIR/new_fns_cannot_const_generics.rs:7:12
|
||||
--> cases/widget/new_fns_cannot_const_generics.rs:7:12
|
||||
|
|
||||
7 | fn new<const N: usize>(child: impl UiNode, id: impl Into<WidgetId>) -> [bool; N] {
|
||||
7 | fn new<const N: usize>(child: impl UiNode, id: impl IntoValue<WidgetId>) -> [bool; N] {
|
||||
| ^^^^^
|
||||
|
||||
error: `new_child` does not support `const` generics
|
||||
--> $DIR/new_fns_cannot_const_generics.rs:10:18
|
||||
--> cases/widget/new_fns_cannot_const_generics.rs:10:18
|
||||
|
|
||||
10 | fn new_child<const N: usize>() -> [bool; N] {
|
||||
| ^^^^^
|
||||
|
||||
error[E0425]: cannot find value `N` in this scope
|
||||
--> $DIR/new_fns_cannot_const_generics.rs:7:83
|
||||
--> cases/widget/new_fns_cannot_const_generics.rs:7:88
|
||||
|
|
||||
7 | fn new<const N: usize>(child: impl UiNode, id: impl Into<WidgetId>) -> [bool; N] {
|
||||
| ^ not found in this scope
|
||||
7 | fn new<const N: usize>(child: impl UiNode, id: impl IntoValue<WidgetId>) -> [bool; N] {
|
||||
| ^ not found in this scope
|
||||
|
|
||||
help: consider importing one of these items
|
||||
|
|
||||
|
@ -24,7 +24,7 @@ help: consider importing one of these items
|
|||
|
|
||||
|
||||
error[E0277]: the trait bound `[bool; _]: UiNode` is not satisfied
|
||||
--> $DIR/new_fns_cannot_const_generics.rs:10:39
|
||||
--> cases/widget/new_fns_cannot_const_generics.rs:10:39
|
||||
|
|
||||
10 | fn new_child<const N: usize>() -> [bool; N] {
|
||||
| ^^^^^^^^^ the trait `UiNode` is not implemented for `[bool; _]`
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
error: `new` cannot declare lifetimes
|
||||
--> $DIR/new_fns_cannot_declare_lifetimes.rs:12:12
|
||||
--> cases/widget/new_fns_cannot_declare_lifetimes.rs:16:12
|
||||
|
|
||||
12 | fn new<'a>(child: impl UiNode + 'a, id: impl Into<WidgetId>) -> impl UiNode {
|
||||
16 | fn new<'a>(child: impl UiNode + 'a, id: impl IntoValue<WidgetId>) -> impl UiNode {
|
||||
| ^^
|
||||
|
||||
error: `new_child` cannot declare lifetimes
|
||||
--> $DIR/new_fns_cannot_declare_lifetimes.rs:15:18
|
||||
--> cases/widget/new_fns_cannot_declare_lifetimes.rs:19:18
|
||||
|
|
||||
15 | fn new_child<'a>(margin: impl IntoVar<SideOffsets> + 'a) -> NilUiNode {
|
||||
19 | fn new_child<'a>(margin: impl IntoVar<SideOffsets> + 'a) -> NilUiNode {
|
||||
| ^^
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error: property `id` already captured in `new_child`
|
||||
--> $DIR/property_already_captured1.rs:12:32
|
||||
--> cases/widget/property_already_captured1.rs:12:32
|
||||
|
|
||||
12 | fn new(child: impl UiNode, id: impl Into<WidgetId>) {
|
||||
12 | fn new(child: impl UiNode, id: impl IntoValue<WidgetId>) {
|
||||
| ^^
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
error: property `id` already captured in `new`
|
||||
--> $DIR/property_already_captured2.rs:7:57
|
||||
--> cases/widget/property_already_captured2.rs:7:62
|
||||
|
|
||||
7 | fn new(child: impl UiNode, id: impl Into<WidgetId>, id: impl Into<WidgetId>) {
|
||||
| ^^
|
||||
7 | fn new(child: impl UiNode, id: impl IntoValue<WidgetId>, id: impl IntoValue<WidgetId>) {
|
||||
| ^^
|
||||
|
||||
error[E0415]: identifier `id` is bound more than once in this parameter list
|
||||
--> $DIR/property_already_captured2.rs:7:57
|
||||
--> cases/widget/property_already_captured2.rs:7:62
|
||||
|
|
||||
7 | fn new(child: impl UiNode, id: impl Into<WidgetId>, id: impl Into<WidgetId>) {
|
||||
| ^^ used as parameter more than once
|
||||
7 | fn new(child: impl UiNode, id: impl IntoValue<WidgetId>, id: impl IntoValue<WidgetId>) {
|
||||
| ^^ used as parameter more than once
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error: property `id` is already captured in inherited fn `new`
|
||||
--> $DIR/property_already_captured_inherited1.rs:7:18
|
||||
--> cases/widget/property_already_captured_inherited1.rs:7:18
|
||||
|
|
||||
7 | fn new_child(id: impl Into<WidgetId>) -> NilUiNode {
|
||||
7 | fn new_child(id: impl IntoValue<WidgetId>) -> NilUiNode {
|
||||
| ^^
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
error[E0277]: the trait bound `bool: IntoVar<SideOffsets>` is not satisfied
|
||||
--> $DIR/incorrect_arg_type1.rs:6:18
|
||||
--> cases/widget_new/incorrect_arg_type1.rs:6:18
|
||||
|
|
||||
6 | margin = true
|
||||
| ^^^^
|
||||
| |
|
||||
| expected an implementor of trait `IntoVar<SideOffsets>`
|
||||
| help: consider borrowing here: `&true`
|
||||
| ^^^^ expected an implementor of trait `IntoVar<SideOffsets>`
|
||||
|
|
||||
note: required by `margin_ArgsImpl::<T_margin>::new`
|
||||
--> $DIR/layout.rs:36:1
|
||||
--> $WORKSPACE/zero-ui/src/properties/layout.rs
|
||||
|
|
||||
36 | #[property(outer, default(0))]
|
||||
| #[property(outer, default(0))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: consider borrowing here
|
||||
|
|
||||
6 | margin = &true
|
||||
| +
|
||||
|
|
|
@ -1,18 +1,21 @@
|
|||
error[E0277]: the trait bound `bool: IntoVar<GradientStops>` is not satisfied
|
||||
--> $DIR/incorrect_arg_type3.rs:7:40
|
||||
--> cases/widget_new/incorrect_arg_type3.rs:7:40
|
||||
|
|
||||
7 | background_gradient = 0.deg(), true
|
||||
| ^^^^
|
||||
| |
|
||||
| expected an implementor of trait `IntoVar<GradientStops>`
|
||||
| help: consider borrowing here: `&true`
|
||||
| - ^^^^ expected an implementor of trait `IntoVar<GradientStops>`
|
||||
| |
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by `background_gradient_ArgsImpl::<T_axis, T_stops>::new`
|
||||
--> $DIR/visual.rs:124:1
|
||||
--> $WORKSPACE/zero-ui/src/properties/visual.rs
|
||||
|
|
||||
124 | / #[property(inner, default(0.deg(), {
|
||||
125 | | let c = colors::BLACK.transparent();
|
||||
126 | | crate::core::gradient::stops![c, c]
|
||||
127 | | }))]
|
||||
| / #[property(inner, default(0.deg(), {
|
||||
| | let c = colors::BLACK.transparent();
|
||||
| | crate::core::gradient::stops![c, c]
|
||||
| | }))]
|
||||
| |____^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: consider borrowing here
|
||||
|
|
||||
7 | background_gradient = 0.deg(), &true
|
||||
| +
|
||||
|
|
|
@ -1,18 +1,22 @@
|
|||
error[E0277]: the trait bound `bool: IntoVar<GradientStops>` is not satisfied
|
||||
--> $DIR/incorrect_arg_type4.rs:10:20
|
||||
--> cases/widget_new/incorrect_arg_type4.rs:10:20
|
||||
|
|
||||
8 | background_gradient = {
|
||||
| - required by a bound introduced by this call
|
||||
9 | axis: 0.deg(),
|
||||
10 | stops: true
|
||||
| ^^^^
|
||||
| |
|
||||
| expected an implementor of trait `IntoVar<GradientStops>`
|
||||
| help: consider borrowing here: `&true`
|
||||
| ^^^^ expected an implementor of trait `IntoVar<GradientStops>`
|
||||
|
|
||||
note: required by `background_gradient_ArgsImpl::<T_axis, T_stops>::new`
|
||||
--> $DIR/visual.rs:124:1
|
||||
--> $WORKSPACE/zero-ui/src/properties/visual.rs
|
||||
|
|
||||
124 | / #[property(inner, default(0.deg(), {
|
||||
125 | | let c = colors::BLACK.transparent();
|
||||
126 | | crate::core::gradient::stops![c, c]
|
||||
127 | | }))]
|
||||
| / #[property(inner, default(0.deg(), {
|
||||
| | let c = colors::BLACK.transparent();
|
||||
| | crate::core::gradient::stops![c, c]
|
||||
| | }))]
|
||||
| |____^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: consider borrowing here
|
||||
|
|
||||
10 | stops: &true
|
||||
| +
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
error[E0061]: this function takes 2 arguments but 1 argument was supplied
|
||||
--> $DIR/missing_arg1.rs:7:31
|
||||
--> cases/widget_new/missing_arg1.rs:7:31
|
||||
|
|
||||
7 | background_gradient = 0.deg(), ;
|
||||
| ^------
|
||||
|
@ -8,11 +8,11 @@ error[E0061]: this function takes 2 arguments but 1 argument was supplied
|
|||
| expected 2 arguments
|
||||
|
|
||||
note: associated function defined here
|
||||
--> $DIR/visual.rs:124:1
|
||||
--> $WORKSPACE/zero-ui/src/properties/visual.rs
|
||||
|
|
||||
124 | / #[property(inner, default(0.deg(), {
|
||||
125 | | let c = colors::BLACK.transparent();
|
||||
126 | | crate::core::gradient::stops![c, c]
|
||||
127 | | }))]
|
||||
| / #[property(inner, default(0.deg(), {
|
||||
| | let c = colors::BLACK.transparent();
|
||||
| | crate::core::gradient::stops![c, c]
|
||||
| | }))]
|
||||
| |____^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
error[E0061]: this function takes 2 arguments but 1 argument was supplied
|
||||
--> $DIR/missing_field_all_multi.rs:9:31
|
||||
--> cases/widget_new/missing_field_all_multi.rs:9:31
|
||||
|
|
||||
9 | background_gradient = { }
|
||||
| ^^^
|
||||
| ^--
|
||||
| |
|
||||
| supplied 1 argument
|
||||
| expected 2 arguments
|
||||
|
|
||||
note: associated function defined here
|
||||
--> $DIR/visual.rs:124:1
|
||||
--> $WORKSPACE/zero-ui/src/properties/visual.rs
|
||||
|
|
||||
124 | / #[property(inner, default(0.deg(), {
|
||||
125 | | let c = colors::BLACK.transparent();
|
||||
126 | | crate::core::gradient::stops![c, c]
|
||||
127 | | }))]
|
||||
| / #[property(inner, default(0.deg(), {
|
||||
| | let c = colors::BLACK.transparent();
|
||||
| | crate::core::gradient::stops![c, c]
|
||||
| | }))]
|
||||
| |____^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
|
@ -1,15 +1,19 @@
|
|||
error[E0277]: the trait bound `(): IntoVar<SideOffsets>` is not satisfied
|
||||
--> $DIR/missing_field_all_single.rs:8:18
|
||||
--> cases/widget_new/missing_field_all_single.rs:8:18
|
||||
|
|
||||
8 | margin = { }
|
||||
| ^^^
|
||||
| -^^
|
||||
| |
|
||||
| expected an implementor of trait `IntoVar<SideOffsets>`
|
||||
| help: consider borrowing here: `&{ }`
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
note: required by `margin_ArgsImpl::<T_margin>::new`
|
||||
--> $DIR/layout.rs:36:1
|
||||
--> $WORKSPACE/zero-ui/src/properties/layout.rs
|
||||
|
|
||||
36 | #[property(outer, default(0))]
|
||||
| #[property(outer, default(0))]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
help: consider borrowing here
|
||||
|
|
||||
8 | margin = &{ }
|
||||
| +
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
error: expected `;`
|
||||
--> $DIR/missing_value6.rs:8:9
|
||||
--> cases/widget_new/missing_value6.rs:8:9
|
||||
|
|
||||
8 | margin = 0;
|
||||
| ^^^^^^
|
||||
|
||||
error[E0061]: this function takes 2 arguments but 1 argument was supplied
|
||||
--> $DIR/missing_value6.rs:7:31
|
||||
--> cases/widget_new/missing_value6.rs:7:31
|
||||
|
|
||||
7 | background_gradient = 0.deg(),
|
||||
| ^------
|
||||
|
@ -14,11 +14,11 @@ error[E0061]: this function takes 2 arguments but 1 argument was supplied
|
|||
| expected 2 arguments
|
||||
|
|
||||
note: associated function defined here
|
||||
--> $DIR/visual.rs:124:1
|
||||
--> $WORKSPACE/zero-ui/src/properties/visual.rs
|
||||
|
|
||||
124 | / #[property(inner, default(0.deg(), {
|
||||
125 | | let c = colors::BLACK.transparent();
|
||||
126 | | crate::core::gradient::stops![c, c]
|
||||
127 | | }))]
|
||||
| / #[property(inner, default(0.deg(), {
|
||||
| | let c = colors::BLACK.transparent();
|
||||
| | crate::core::gradient::stops![c, c]
|
||||
| | }))]
|
||||
| |____^
|
||||
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
|
|
@ -163,10 +163,11 @@ fn test(mut args: Vec<&str>) {
|
|||
} else if take_flag(&mut args, &["-b", "--build"]) {
|
||||
// build tests:
|
||||
|
||||
let overwrite = if take_flag(&mut args, &["--OVERWRITE"]) { "overwrite" } else { "" };
|
||||
|
||||
if args.len() != 1 {
|
||||
error("expected pattern, use do test -b * to run all build tests");
|
||||
} else {
|
||||
let overwrite = if take_flag(&mut args, &["--OVERWRITE"]) { "overwrite" } else { "" };
|
||||
cmd_env(
|
||||
"cargo",
|
||||
&["run", "--package", "build-tests"],
|
||||
|
|
|
@ -678,20 +678,20 @@ pub mod impl_ui_node_util {
|
|||
};
|
||||
|
||||
#[inline]
|
||||
pub fn delegate<U: UiNode + ?Sized>(d: &U) -> &U {
|
||||
pub fn delegate(d: &impl UiNode) -> &impl UiNode {
|
||||
d
|
||||
}
|
||||
#[inline]
|
||||
pub fn delegate_mut<U: UiNode + ?Sized>(d: &mut U) -> &mut U {
|
||||
pub fn delegate_mut(d: &mut impl UiNode) -> &mut impl UiNode {
|
||||
d
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn delegate_list<U: UiNodeList + ?Sized>(d: &U) -> &U {
|
||||
pub fn delegate_list(d: &impl UiNodeList) -> &impl UiNodeList {
|
||||
d
|
||||
}
|
||||
#[inline]
|
||||
pub fn delegate_list_mut<U: UiNodeList + ?Sized>(d: &mut U) -> &mut U {
|
||||
pub fn delegate_list_mut(d: &mut impl UiNodeList) -> &mut impl UiNodeList {
|
||||
d
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue