]>
Commit | Line | Data |
---|---|---|
ba9703b0 | 1 | error[E0624]: associated function `method` is private |
6a06907d | 2 | --> $DIR/method-private.rs:19:9 |
3b2f2976 | 3 | | |
136023e0 XL |
4 | LL | fn method(&self) {} |
5 | | ---------------- private associated function defined here | |
6 | ... | |
532ac7d7 | 7 | LL | foo.method(); |
ba9703b0 | 8 | | ^^^^^^ private associated function |
3b2f2976 XL |
9 | | |
10 | = help: items from traits can only be used if the trait is in scope | |
e74abb32 | 11 | help: the following trait is implemented but not in scope; perhaps add a `use` for it: |
ff7c6d11 | 12 | | |
0531ce1d | 13 | LL | use inner::Bar; |
ff7c6d11 | 14 | | |
3b2f2976 XL |
15 | |
16 | error: aborting due to previous error | |
17 | ||
0531ce1d | 18 | For more information about this error, try `rustc --explain E0624`. |