2018-01-29 22:15:20 +09:00

16 lines
262 B
Rust

// rustfmt-use_field_init_shorthand: true
// Use field initialization shorthand if possible.
fn main() {
let a = Foo { x, y, z };
let b = Bar {
x,
y,
#[attr]
z,
#[rustfmt_skip]
skipped: skipped,
};
}