39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
error: expected `;`
|
|
--> cases/widget_new/missing_value6.rs:11:9
|
|
|
|
|
11 | margin = 0;
|
|
| ^^^^^^
|
|
|
|
error[E0689]: can't call method `deg` on ambiguous numeric type `{integer}`
|
|
--> cases/widget_new/missing_value6.rs:10:33
|
|
|
|
|
10 | background_gradient = 0.deg(),
|
|
| ^^^
|
|
|
|
|
help: you must specify a concrete type for this numeric value, like `i32`
|
|
|
|
|
10 | background_gradient = 0_i32.deg(),
|
|
| ~~~~~
|
|
|
|
error[E0061]: this method takes 2 arguments but 1 argument was supplied
|
|
--> cases/widget_new/missing_value6.rs:10:9
|
|
|
|
|
9 | let _ = Wgt! {
|
|
| _____________-
|
|
10 | | background_gradient = 0.deg(),
|
|
| | ^^^^^^^^^^^^^^^^^^^
|
|
11 | | margin = 0;
|
|
12 | | };
|
|
| |_____- an argument is missing
|
|
|
|
|
note: method defined here
|
|
--> $WORKSPACE/crates/zng-wgt-fill/src/lib.rs
|
|
|
|
|
| pub fn background_gradient(child: impl UiNode, axis: impl IntoVar<LinearGradientAxis>, stops: impl IntoVar<GradientStops>) -> impl UiNode {
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
help: provide the argument
|
|
--> $WORKSPACE/crates/zng-wgt/src/wgt.rs
|
|
|
|
|
| background_gradient(0.deg(), /* stops */)
|
|
|
|