rust/tests/target/configs/use_field_init_shorthand/false.rs
2018-01-29 22:15:20 +09:00

16 lines
281 B
Rust

// rustfmt-use_field_init_shorthand: false
// 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,
};
}