summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/privacy1.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:31 +0000
commitdc0db358abe19481e475e10c32149b53370f1a1c (patch)
treeab8ce99c4b255ce46f99ef402c27916055b899ee /tests/ui/privacy/privacy1.stderr
parentReleasing progress-linux version 1.71.1+dfsg1-2~progress7.99u1. (diff)
downloadrustc-dc0db358abe19481e475e10c32149b53370f1a1c.tar.xz
rustc-dc0db358abe19481e475e10c32149b53370f1a1c.zip
Merging upstream version 1.72.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/privacy/privacy1.stderr')
-rw-r--r--tests/ui/privacy/privacy1.stderr28
1 files changed, 23 insertions, 5 deletions
diff --git a/tests/ui/privacy/privacy1.stderr b/tests/ui/privacy/privacy1.stderr
index 6ebed8ee0..ca8f242e0 100644
--- a/tests/ui/privacy/privacy1.stderr
+++ b/tests/ui/privacy/privacy1.stderr
@@ -50,7 +50,9 @@ error[E0603]: module `baz` is private
--> $DIR/privacy1.rs:104:16
|
LL | ::bar::baz::A::foo();
- | ^^^ private module
+ | ^^^ - struct `A` is not publicly re-exported
+ | |
+ | private module
|
note: the module `baz` is defined here
--> $DIR/privacy1.rs:50:5
@@ -62,7 +64,9 @@ error[E0603]: module `baz` is private
--> $DIR/privacy1.rs:105:16
|
LL | ::bar::baz::A::bar();
- | ^^^ private module
+ | ^^^ - struct `A` is not publicly re-exported
+ | |
+ | private module
|
note: the module `baz` is defined here
--> $DIR/privacy1.rs:50:5
@@ -74,7 +78,9 @@ error[E0603]: module `baz` is private
--> $DIR/privacy1.rs:107:16
|
LL | ::bar::baz::A.foo2();
- | ^^^ private module
+ | ^^^ - unit struct `A` is not publicly re-exported
+ | |
+ | private module
|
note: the module `baz` is defined here
--> $DIR/privacy1.rs:50:5
@@ -86,7 +92,9 @@ error[E0603]: module `baz` is private
--> $DIR/privacy1.rs:108:16
|
LL | ::bar::baz::A.bar2();
- | ^^^ private module
+ | ^^^ - unit struct `A` is not publicly re-exported
+ | |
+ | private module
|
note: the module `baz` is defined here
--> $DIR/privacy1.rs:50:5
@@ -98,7 +106,9 @@ error[E0603]: trait `B` is private
--> $DIR/privacy1.rs:112:16
|
LL | ::bar::B::foo();
- | ^ private trait
+ | ^ --- associated function `foo` is not publicly re-exported
+ | |
+ | private trait
|
note: the trait `B` is defined here
--> $DIR/privacy1.rs:40:5
@@ -129,6 +139,10 @@ note: the module `baz` is defined here
|
LL | mod baz {
| ^^^^^^^
+help: consider importing this function through its public re-export instead
+ |
+LL | bar::foo();
+ | ~~~~~~~~
error[E0603]: module `baz` is private
--> $DIR/privacy1.rs:128:16
@@ -141,6 +155,10 @@ note: the module `baz` is defined here
|
LL | mod baz {
| ^^^^^^^
+help: consider importing this function through its public re-export instead
+ |
+LL | bar::bar();
+ | ~~~~~~~~
error[E0603]: trait `B` is private
--> $DIR/privacy1.rs:157:17