rust/tests/target/init_shorthand.rs
2018-01-22 13:03:48 +09:00

15 lines
220 B
Rust

// Use field initialization shorthand if possible.
fn main() {
let a = Foo { x, y, z };
let b = Bar {
x,
y,
#[attr]
z,
#[rustfmt_skip]
skipped: skipped,
};
}