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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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-05 03:03:15 +00:00
foo.method(); //~ ERROR associated function `method` is private [E0624]
}