]>
Commit | Line | Data |
---|---|---|
9ffffee4 | 1 | error[E0624]: method `method` is private |
6a06907d | 2 | --> $DIR/method-private.rs:19:9 |
3b2f2976 | 3 | | |
136023e0 | 4 | LL | fn method(&self) {} |
9ffffee4 | 5 | | ---------------- private method defined here |
136023e0 | 6 | ... |
532ac7d7 | 7 | LL | foo.method(); |
9ffffee4 | 8 | | ^^^^^^ private method |
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 | | |
353b0b11 | 13 | LL + use inner::Bar; |
ff7c6d11 | 14 | | |
3b2f2976 | 15 | |
4b012472 | 16 | error: aborting due to 1 previous error |
3b2f2976 | 17 | |
0531ce1d | 18 | For more information about this error, try `rustc --explain E0624`. |