zng/tests/macro-tests/cases/widget_new/missing_field_multi.rs

18 lines
386 B
Rust

use zng::{
layout::AngleUnits,
widget::{background_gradient, Wgt},
APP,
};
fn main() {
let _scope = APP.minimal();
let _ = Wgt! {
// background_gradient has two fields
// the error highlights the property
// in a struct initializer the struct name is highlighted
background_gradient = {
axis: 0.deg(),
}
};
}