Sign in
rust
/
rust
/
HEAD
/
.
/
tests
/
ui
/
privacy
/
struct-field-type.rs
blob: 6a4a19297e190b91f09d471d304a007332385dd7 [
file
] [
log
] [
blame
]
mod
m
{
struct
Priv
;
pub
type
Leak
=
Priv
;
//~ WARN: `Priv` is more private than the item `Leak`
}
struct
S
{
field
:
m
::
Leak
,
//~ ERROR: `Priv` is private
}
fn
main
()
{}