mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +00:00
13 lines
188 B
Rust
13 lines
188 B
Rust
mod inner {
|
|
pub struct Foo;
|
|
|
|
impl Foo {
|
|
fn method(&self) {}
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
let foo = inner::Foo;
|
|
foo.method(); //~ ERROR method `method` is private [E0624]
|
|
}
|