]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/method-private.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / traits / method-private.stderr
CommitLineData
ba9703b0 1error[E0624]: associated function `method` is private
6a06907d 2 --> $DIR/method-private.rs:19:9
3b2f2976 3 |
136023e0
XL
4LL | fn method(&self) {}
5 | ---------------- private associated function defined here
6...
532ac7d7 7LL | 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 11help: the following trait is implemented but not in scope; perhaps add a `use` for it:
ff7c6d11 12 |
0531ce1d 13LL | use inner::Bar;
ff7c6d11 14 |
3b2f2976
XL
15
16error: aborting due to previous error
17
0531ce1d 18For more information about this error, try `rustc --explain E0624`.