]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0624.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0624.rs
1 mod inner {
2     pub struct Foo;
3
4     impl Foo {
5         fn method(&self) {}
6     }
7 }
8
9 fn main() {
10     let foo = inner::Foo;
11     foo.method(); //~ ERROR associated function `method` is private [E0624]
12 }