Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
structs
/
default-field-values
/
auxiliary
/
struct_field_default.rs
blob: a1c9645a1ae2313ce8f7e3c57d6c2c8a01255eb1 [
file
] [
log
] [
blame
]
#![
feature
(
default_field_values
)]
pub
struct
A
{
pub
a
:
isize
=
42
,
}
struct
Priv
;
pub
struct
B
{
pub
a
:
Priv
=
Priv
,
}
pub
struct
C
{
pub
a
:
Priv
,
}