Sign in
rust
/
rustfmt
/
refs/heads/libsyntax
/
.
/
tests
/
source
/
struct-field-attributes.rs
blob: 2e5381a7e414be42fe8323f51ee91d74b74b1550 [
file
] [
log
] [
blame
]
// #1535
#![
feature
(
struct_field_attributes
)]
struct
Foo
{
bar
:
u64
,
#[
cfg
(
test
)]
qux
:
u64
,
}
fn
do_something
()
->
Foo
{
Foo
{
bar
:
0
,
#[
cfg
(
test
)]
qux
:
1
,
}
}
fn
main
()
{
do_something
();
}