15 lines
220 B
Rust
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,
|
|
};
|
|
}
|