2018-01-29 07:14:25 -06:00
|
|
|
// rustfmt-use_field_init_shorthand: true
|
2018-01-21 22:03:48 -06:00
|
|
|
// Use field initialization shorthand if possible.
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let a = Foo { x, y, z };
|
|
|
|
|
|
|
|
let b = Bar {
|
|
|
|
x,
|
|
|
|
y,
|
|
|
|
#[attr]
|
|
|
|
z,
|
2018-05-13 23:25:10 -05:00
|
|
|
#[rustfmt::skip]
|
2018-01-21 22:03:48 -06:00
|
|
|
skipped: skipped,
|
|
|
|
};
|
|
|
|
}
|