Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
privacy
/
private-method-inherited.rs
blob: 2f6454288ae6884a9e731e62f60d0874ccf0c27c [
file
] [
log
] [
blame
]
// Tests that inherited visibility applies to methods.
mod
a
{
pub
struct
Foo
;
impl
Foo
{
fn
f
(
self
)
{}
}
}
fn
main
()
{
let
x
=
a
::
Foo
;
x
.
f
();
//~ ERROR associated function `f` is private
}