mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
13 lines
201 B
Rust
13 lines
201 B
Rust
mod inner {
|
|
pub struct Foo;
|
|
|
|
impl Foo {
|
|
fn method(&self) {}
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
let foo = inner::Foo;
|
|
foo.method(); //~ ERROR associated function `method` is private [E0624]
|
|
}
|