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