Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
error-codes
/
ex-E0611.rs
blob: 8460341c44e5175731d174580a4686175253a314 [
file
] [
log
] [
blame
]
mod
a
{
pub
struct
Foo
(
u32
);
impl
Foo
{
pub
fn
new
()
->
Foo
{
Foo
(
0
)
}
}
}
fn
main
()
{
let
y
=
a
::
Foo
::
new
();
y
.
0
;
//~ ERROR field `0` of struct `a::Foo` is private
}