Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
privacy
/
private-method-inherited.rs
blob: bc27027e886ba5e8393f4b0c476c01e8754c5104 [
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 method `f` is private
}