]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/trait-method-private.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / traits / trait-method-private.stderr
CommitLineData
ba9703b0 1error[E0624]: associated function `method` is private
0731742a 2 --> $DIR/trait-method-private.rs:19:9
3b2f2976 3 |
532ac7d7 4LL | foo.method();
ba9703b0 5 | ^^^^^^ private associated function
3b2f2976
XL
6 |
7 = help: items from traits can only be used if the trait is in scope
e74abb32 8help: the following trait is implemented but not in scope; perhaps add a `use` for it:
ff7c6d11 9 |
0531ce1d 10LL | use inner::Bar;
ff7c6d11 11 |
3b2f2976
XL
12
13error: aborting due to previous error
14
0531ce1d 15For more information about this error, try `rustc --explain E0624`.