rust/src/test/ui/error-codes/E0624.rs
2020-03-12 15:47:36 -05:00

12 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]
}