]> git.proxmox.com Git - rustc.git/blame - tests/ui/traits/method-private.stderr
Merge 1.70 into proxmox/bookworm
[rustc.git] / tests / ui / traits / method-private.stderr
CommitLineData
9ffffee4 1error[E0624]: method `method` is private
6a06907d 2 --> $DIR/method-private.rs:19:9
3b2f2976 3 |
136023e0 4LL | fn method(&self) {}
9ffffee4 5 | ---------------- private method defined here
136023e0 6...
532ac7d7 7LL | 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 11help: the following trait is implemented but not in scope; perhaps add a `use` for it:
ff7c6d11 12 |
353b0b11 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`.