mirror of https://github.com/rust-lang/rust
179 lines
7.0 KiB
Plaintext
179 lines
7.0 KiB
Plaintext
error: trait `PrivTr` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:11:13
|
|
|
|
|
LL | let _: Box<dyn PubTr<AssocTy = u8>>;
|
|
| ^ private trait
|
|
...
|
|
LL | priv_trait::mac1!();
|
|
| ------------------- in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `priv_trait::mac1` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: trait `PrivTr` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:11:16
|
|
|
|
|
LL | let _: Box<dyn PubTr<AssocTy = u8>>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private trait
|
|
...
|
|
LL | priv_trait::mac1!();
|
|
| ------------------- in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `priv_trait::mac1` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: trait `PrivTr` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:14:31
|
|
|
|
|
LL | type InSignatureTy2 = Box<dyn PubTr<AssocTy = u8>>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private trait
|
|
...
|
|
LL | priv_trait::mac1!();
|
|
| ------------------- in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `priv_trait::mac1` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: trait `PrivTr` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:16:37
|
|
|
|
|
LL | trait InSignatureTr2: PubTr<AssocTy = u8> {}
|
|
| ^^^^^^^^^^^^ private trait
|
|
...
|
|
LL | priv_trait::mac1!();
|
|
| ------------------- in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `priv_trait::mac1` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: trait `PrivTr` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:20:13
|
|
|
|
|
LL | let _: Box<dyn PrivTr<AssocTy = u8>>;
|
|
| ^ private trait
|
|
...
|
|
LL | priv_trait::mac2!();
|
|
| ------------------- in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `priv_trait::mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: trait `PrivTr` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:20:16
|
|
|
|
|
LL | let _: Box<dyn PrivTr<AssocTy = u8>>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private trait
|
|
...
|
|
LL | priv_trait::mac2!();
|
|
| ------------------- in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `priv_trait::mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: trait `PrivTr` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:23:31
|
|
|
|
|
LL | type InSignatureTy1 = Box<dyn PrivTr<AssocTy = u8>>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private trait
|
|
...
|
|
LL | priv_trait::mac2!();
|
|
| ------------------- in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `priv_trait::mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: trait `PrivTr` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:25:31
|
|
|
|
|
LL | trait InSignatureTr1: PrivTr<AssocTy = u8> {}
|
|
| ^^^^^^^^^^^^^^^^^^^^ private trait
|
|
...
|
|
LL | priv_trait::mac2!();
|
|
| ------------------- in this macro invocation
|
|
|
|
|
= note: this error originates in the macro `priv_trait::mac2` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
error: type `Priv` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:44:13
|
|
|
|
|
LL | let _: Box<dyn PubTrWithParam<AssocTy = u8>>;
|
|
| ^ 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` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:44:16
|
|
|
|
|
LL | let _: Box<dyn PubTrWithParam<AssocTy = u8>>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:47:13
|
|
|
|
|
LL | let _: Box<dyn PubTr<AssocTy = u8>>;
|
|
| ^ 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` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:47:16
|
|
|
|
|
LL | let _: Box<dyn PubTr<AssocTy = u8>>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:50:35
|
|
|
|
|
LL | pub type InSignatureTy1 = Box<dyn PubTrWithParam<AssocTy = u8>>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:52:35
|
|
|
|
|
LL | pub type InSignatureTy2 = Box<dyn PubTr<AssocTy = u8>>;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:54:31
|
|
|
|
|
LL | trait InSignatureTr1: PubTrWithParam<AssocTy = u8> {}
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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` is private
|
|
--> $DIR/associated-item-privacy-type-binding.rs:56:37
|
|
|
|
|
LL | trait InSignatureTr2: PubTr<AssocTy = u8> {}
|
|
| ^^^^^^^^^^^^ 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 16 previous errors
|
|
|