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: x,
|
|
|
|
y: y,
|
|
|
|
z: z,
|
|
|
|
};
|
|
|
|
|
|
|
|
let b = Bar {
|
|
|
|
x: x,
|
|
|
|
y: y,
|
|
|
|
#[attr]
|
|
|
|
z: z,
|
|
|
|
#[rustfmt_skip]
|
|
|
|
skipped: skipped,
|
|
|
|
};
|
|
|
|
}
|