Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
typeck
/
missing-private-fields-in-struct-literal.rs
blob: 9f1560bfb8dfeebfad9e75b6ba2cc459d40fbdad [
file
] [
log
] [
blame
]
pub
mod
m
{
pub
struct
S
{
pub
visible
:
bool
,
a
:
(),
b
:
(),
c
:
(),
d
:
(),
e
:
(),
}
}
fn
main
()
{
let
_
=
m
::
S
{
//~ ERROR cannot construct `S` with struct literal syntax due to private fields
visible
:
true
,
a
:
(),
b
:
(),
};
}