rust/tests/ui/error-codes/E0624.rs
2023-01-11 09:32:08 +00:00

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