Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
tools
/
rustfmt
/
tests
/
target
/
configs
/
use_field_init_shorthand
/
false.rs
blob: 7433044688670d452a2a330adbf0073815e6b88b [
file
] [
log
] [
blame
]
// 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
,
};
}