]> git.proxmox.com Git - rustc.git/blame - src/test/ui/traits/trait-method-private.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / traits / trait-method-private.stderr
CommitLineData
3b2f2976 1error[E0624]: method `method` is private
0731742a 2 --> $DIR/trait-method-private.rs:19:9
3b2f2976 3 |
0531ce1d 4LL | foo.method(); //~ ERROR is private
3b2f2976
XL
5 | ^^^^^^
6 |
7 = help: items from traits can only be used if the trait is in scope
ff7c6d11
XL
8help: the following trait is implemented but not in scope, perhaps add a `use` for it:
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`.