rust/tests/ui/privacy/associated-item-privacy-inh...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

234 lines
8.6 KiB
Plaintext
Raw Normal View History

2022-09-21 23:57:30 +08:00
error: type `for<'a> fn(&'a priv_nominal::Pub) {priv_nominal::Pub::method}` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:13:21
2018-08-08 20:28:26 +08:00
|
LL | let value = Pub::method;
| ^^^^^^^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_nominal::mac!();
2021-10-15 02:28:28 +08:00
| -------------------- 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)
2018-08-08 20:28:26 +08:00
2022-09-21 23:57:30 +08:00
error: type `for<'a> fn(&'a priv_nominal::Pub) {priv_nominal::Pub::method}` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:15:9
2018-08-08 20:28:26 +08:00
|
LL | value;
| ^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_nominal::mac!();
2021-10-15 02:28:28 +08:00
| -------------------- 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)
2018-08-08 20:28:26 +08:00
2022-09-21 23:57:30 +08:00
error: type `for<'a> fn(&'a priv_nominal::Pub) {priv_nominal::Pub::method}` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:17:13
2018-08-08 20:28:26 +08:00
|
LL | Pub.method();
| ^^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_nominal::mac!();
2021-10-15 02:28:28 +08:00
| -------------------- 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)
2018-08-08 20:28:26 +08:00
error: associated constant `CONST` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:19:9
2018-08-08 20:28:26 +08:00
|
LL | Pub::CONST;
| ^^^^^^^^^^ private associated constant
2018-08-08 20:28:26 +08:00
...
LL | priv_nominal::mac!();
2021-10-15 02:28:28 +08:00
| -------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_signature::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:37:21
2018-08-08 20:28:26 +08:00
|
LL | let value = Pub::method;
| ^^^^^^^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_signature::mac!();
2021-10-15 02:28:28 +08:00
| ---------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_signature::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:39:9
2018-08-08 20:28:26 +08:00
|
LL | value;
| ^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_signature::mac!();
2021-10-15 02:28:28 +08:00
| ---------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_signature::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:41:13
2018-08-08 20:28:26 +08:00
|
LL | Pub.method(loop {});
| ^^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_signature::mac!();
2021-10-15 02:28:28 +08:00
| ---------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:57:21
2018-08-08 20:28:26 +08:00
|
LL | let value = Pub::method::<Priv>;
| ^^^^^^^^^^^^^^^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_substs::mac!();
2021-10-15 02:28:28 +08:00
| ------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:59:9
2018-08-08 20:28:26 +08:00
|
LL | value;
| ^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_substs::mac!();
2021-10-15 02:28:28 +08:00
| ------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:61:9
2018-08-08 20:28:26 +08:00
|
LL | Pub.method::<Priv>();
| ^^^^^^^^^^^^^^^^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_substs::mac!();
2021-10-15 02:28:28 +08:00
| ------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_parent_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:80:21
2018-08-08 20:28:26 +08:00
|
LL | let value = <Pub>::method;
| ^^^^^^^^^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_parent_substs::mac!();
2021-10-15 02:28:28 +08:00
| -------------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_parent_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:82:9
2018-08-08 20:28:26 +08:00
|
LL | value;
| ^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_parent_substs::mac!();
2021-10-15 02:28:28 +08:00
| -------------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_parent_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:84:21
2018-08-08 20:28:26 +08:00
|
LL | let value = Pub::method;
| ^^^^^^^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_parent_substs::mac!();
2021-10-15 02:28:28 +08:00
| -------------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_parent_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:86:9
2018-08-08 20:28:26 +08:00
|
LL | value;
| ^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_parent_substs::mac!();
2021-10-15 02:28:28 +08:00
| -------------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_parent_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:88:21
2018-08-08 20:28:26 +08:00
|
LL | let value = <Pub>::static_method;
| ^^^^^^^^^^^^^^^^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_parent_substs::mac!();
2021-10-15 02:28:28 +08:00
| -------------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_parent_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:90:9
2018-08-08 20:28:26 +08:00
|
LL | value;
| ^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_parent_substs::mac!();
2021-10-15 02:28:28 +08:00
| -------------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_parent_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:92:21
2018-08-08 20:28:26 +08:00
|
LL | let value = Pub::static_method;
| ^^^^^^^^^^^^^^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_parent_substs::mac!();
2021-10-15 02:28:28 +08:00
| -------------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_parent_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:94:9
2018-08-08 20:28:26 +08:00
|
LL | value;
| ^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_parent_substs::mac!();
2021-10-15 02:28:28 +08:00
| -------------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_parent_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:96:19
2018-08-08 20:28:26 +08:00
|
LL | Pub(Priv).method();
| ^^^^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_parent_substs::mac!();
2021-10-15 02:28:28 +08:00
| -------------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_parent_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:99:10
2018-08-08 20:28:26 +08:00
|
LL | <Pub>::CONST;
| ^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_parent_substs::mac!();
2021-10-15 02:28:28 +08:00
| -------------------------- 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)
2018-08-08 20:28:26 +08:00
error: type `priv_parent_substs::Priv` is private
2018-12-25 23:56:47 +08:00
--> $DIR/associated-item-privacy-inherent.rs:101:9
2018-08-08 20:28:26 +08:00
|
LL | Pub::CONST;
2021-03-14 00:14:18 +08:00
| ^^^ private type
2018-08-08 20:28:26 +08:00
...
LL | priv_parent_substs::mac!();
2021-10-15 02:28:28 +08:00
| -------------------------- 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)
2018-08-08 20:28:26 +08:00
error: aborting due to 21 previous errors