Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
error-codes
/
ex-E0611.rs
blob: f18a3619f3142643a46a1969e290995d2d4f8004 [
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 `Foo` is private
}