30 lines
1005 B
Plaintext
30 lines
1005 B
Plaintext
error[E0061]: this method takes 2 arguments but 1 argument was supplied
|
|
--> cases/widget_new/missing_field_multi.rs:13:9
|
|
|
|
|
9 | let _ = Wgt! {
|
|
| _____________-
|
|
10 | | // background_gradient has two fields
|
|
11 | | // the error highlights the property
|
|
12 | | // in a struct initializer the struct name is highlighted
|
|
13 | | background_gradient = {
|
|
| | ^^^^^^^^^^^^^^^^^^^
|
|
14 | | axis: 0.deg(),
|
|
15 | | }
|
|
16 | | };
|
|
| |_____- an argument is missing
|
|
|
|
|
note: method defined here
|
|
--> $WORKSPACE/crates/zng-wgt-fill/src/lib.rs
|
|
|
|
|
| / #[property(FILL, default(0.deg(), {
|
|
| | let c = colors::BLACK.transparent();
|
|
| | stops![c, c]
|
|
| | }))]
|
|
| |____^
|
|
= note: this error originates in the attribute macro `property` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
help: provide the argument
|
|
--> $WORKSPACE/crates/zng-wgt/src/wgt.rs
|
|
|
|
|
| background_gradient(axis, /* stops */)
|
|
|
|