20 lines
310 B
Rust
20 lines
310 B
Rust
// rustfmt-use_field_init_shorthand: true
|
|
// 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,
|
|
};
|
|
}
|