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

13 lines
201 B
Rust
Raw Normal View History

mod inner {
pub struct Foo;
impl Foo {
fn method(&self) {}
}
}
fn main() {
let foo = inner::Foo;
2020-03-04 21:03:15 -06:00
foo.method(); //~ ERROR associated function `method` is private [E0624]
}