summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/privacy-in-paths.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/privacy/privacy-in-paths.stderr')
-rw-r--r--tests/ui/privacy/privacy-in-paths.stderr12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/ui/privacy/privacy-in-paths.stderr b/tests/ui/privacy/privacy-in-paths.stderr
index 2eb3ebb51..9c3d5e97c 100644
--- a/tests/ui/privacy/privacy-in-paths.stderr
+++ b/tests/ui/privacy/privacy-in-paths.stderr
@@ -2,7 +2,9 @@ error[E0603]: module `bar` is private
--> $DIR/privacy-in-paths.rs:24:16
|
LL | ::foo::bar::baz::f();
- | ^^^ private module
+ | ^^^ - function `f` is not publicly re-exported
+ | |
+ | private module
|
note: the module `bar` is defined here
--> $DIR/privacy-in-paths.rs:3:5
@@ -21,12 +23,18 @@ note: the module `bar` is defined here
|
LL | mod bar {
| ^^^^^^^
+help: consider importing this struct through its public re-export instead
+ |
+LL | foo::S::f();
+ | ~~~~~~
error[E0603]: trait `T` is private
--> $DIR/privacy-in-paths.rs:26:23
|
LL | <() as ::foo::T>::Assoc::f();
- | ^ private trait
+ | ^ ----- associated type `Assoc` is not publicly re-exported
+ | |
+ | private trait
|
note: the trait `T` is defined here
--> $DIR/privacy-in-paths.rs:8:5