summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/associated-item-privacy-inherent.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /tests/ui/privacy/associated-item-privacy-inherent.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/privacy/associated-item-privacy-inherent.stderr')
-rw-r--r--tests/ui/privacy/associated-item-privacy-inherent.stderr233
1 files changed, 233 insertions, 0 deletions
diff --git a/tests/ui/privacy/associated-item-privacy-inherent.stderr b/tests/ui/privacy/associated-item-privacy-inherent.stderr
new file mode 100644
index 000000000..f4d4ee459
--- /dev/null
+++ b/tests/ui/privacy/associated-item-privacy-inherent.stderr
@@ -0,0 +1,233 @@
+error: type `for<'a> fn(&'a priv_nominal::Pub) {priv_nominal::Pub::method}` is private
+ --> $DIR/associated-item-privacy-inherent.rs:13:21
+ |
+LL | let value = Pub::method;
+ | ^^^^^^^^^^^ private type
+...
+LL | priv_nominal::mac!();
+ | -------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_nominal::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `for<'a> fn(&'a priv_nominal::Pub) {priv_nominal::Pub::method}` is private
+ --> $DIR/associated-item-privacy-inherent.rs:15:9
+ |
+LL | value;
+ | ^^^^^ private type
+...
+LL | priv_nominal::mac!();
+ | -------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_nominal::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `for<'a> fn(&'a priv_nominal::Pub) {priv_nominal::Pub::method}` is private
+ --> $DIR/associated-item-privacy-inherent.rs:17:13
+ |
+LL | Pub.method();
+ | ^^^^^^ private type
+...
+LL | priv_nominal::mac!();
+ | -------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_nominal::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: associated constant `CONST` is private
+ --> $DIR/associated-item-privacy-inherent.rs:19:9
+ |
+LL | Pub::CONST;
+ | ^^^^^^^^^^ private associated constant
+...
+LL | priv_nominal::mac!();
+ | -------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_nominal::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_signature::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:37:21
+ |
+LL | let value = Pub::method;
+ | ^^^^^^^^^^^ private type
+...
+LL | priv_signature::mac!();
+ | ---------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_signature::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:39:9
+ |
+LL | value;
+ | ^^^^^ private type
+...
+LL | priv_signature::mac!();
+ | ---------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_signature::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:41:13
+ |
+LL | Pub.method(loop {});
+ | ^^^^^^ private type
+...
+LL | priv_signature::mac!();
+ | ---------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:57:21
+ |
+LL | let value = Pub::method::<Priv>;
+ | ^^^^^^^^^^^^^^^^^^^ private type
+...
+LL | priv_substs::mac!();
+ | ------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:59:9
+ |
+LL | value;
+ | ^^^^^ private type
+...
+LL | priv_substs::mac!();
+ | ------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:61:9
+ |
+LL | Pub.method::<Priv>();
+ | ^^^^^^^^^^^^^^^^^^^^ private type
+...
+LL | priv_substs::mac!();
+ | ------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_parent_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:80:21
+ |
+LL | let value = <Pub>::method;
+ | ^^^^^^^^^^^^^ private type
+...
+LL | priv_parent_substs::mac!();
+ | -------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_parent_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:82:9
+ |
+LL | value;
+ | ^^^^^ private type
+...
+LL | priv_parent_substs::mac!();
+ | -------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_parent_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:84:21
+ |
+LL | let value = Pub::method;
+ | ^^^^^^^^^^^ private type
+...
+LL | priv_parent_substs::mac!();
+ | -------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_parent_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:86:9
+ |
+LL | value;
+ | ^^^^^ private type
+...
+LL | priv_parent_substs::mac!();
+ | -------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_parent_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:88:21
+ |
+LL | let value = <Pub>::static_method;
+ | ^^^^^^^^^^^^^^^^^^^^ private type
+...
+LL | priv_parent_substs::mac!();
+ | -------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_parent_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:90:9
+ |
+LL | value;
+ | ^^^^^ private type
+...
+LL | priv_parent_substs::mac!();
+ | -------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_parent_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:92:21
+ |
+LL | let value = Pub::static_method;
+ | ^^^^^^^^^^^^^^^^^^ private type
+...
+LL | priv_parent_substs::mac!();
+ | -------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_parent_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:94:9
+ |
+LL | value;
+ | ^^^^^ private type
+...
+LL | priv_parent_substs::mac!();
+ | -------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_parent_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:96:19
+ |
+LL | Pub(Priv).method();
+ | ^^^^^^ private type
+...
+LL | priv_parent_substs::mac!();
+ | -------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_parent_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:99:10
+ |
+LL | <Pub>::CONST;
+ | ^^^ private type
+...
+LL | priv_parent_substs::mac!();
+ | -------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: type `priv_parent_substs::Priv` is private
+ --> $DIR/associated-item-privacy-inherent.rs:101:9
+ |
+LL | Pub::CONST;
+ | ^^^ private type
+...
+LL | priv_parent_substs::mac!();
+ | -------------------------- in this macro invocation
+ |
+ = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error: aborting due to 21 previous errors
+