rust/tests/ui/error-codes/E0624.rs

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