1error: type `for<'r> fn(&'r priv_trait::Pub) {<priv_trait::Pub as PrivTr>::method}` is private 2 --> $DIR/associated-item-privacy-trait.rs:15:21 3 | 4LL | let value = <Pub as PrivTr>::method; 5 | ^^^^^^^^^^^^^^^^^^^^^^^ private type 6... 7LL | priv_trait::mac!(); 8 | ------------------ in this macro invocation 9 | 10 = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 11 12error: type `for<'r> fn(&'r priv_trait::Pub) {<priv_trait::Pub as PrivTr>::method}` is private 13 --> $DIR/associated-item-privacy-trait.rs:17:9 14 | 15LL | value; 16 | ^^^^^ private type 17... 18LL | priv_trait::mac!(); 19 | ------------------ in this macro invocation 20 | 21 = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 22 23error: type `for<'r> fn(&'r Self) {<Self as PrivTr>::method}` is private 24 --> $DIR/associated-item-privacy-trait.rs:19:13 25 | 26LL | Pub.method(); 27 | ^^^^^^ private type 28... 29LL | priv_trait::mac!(); 30 | ------------------ in this macro invocation 31 | 32 = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 33 34error: associated constant `<Pub as PrivTr>::CONST` is private 35 --> $DIR/associated-item-privacy-trait.rs:21:9 36 | 37LL | <Pub as PrivTr>::CONST; 38 | ^^^^^^^^^^^^^^^^^^^^^^ private associated constant 39... 40LL | priv_trait::mac!(); 41 | ------------------ in this macro invocation 42 | 43 = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 44 45error: associated type `<Pub as PrivTr>::AssocTy` is private 46 --> $DIR/associated-item-privacy-trait.rs:23:16 47 | 48LL | let _: <Pub as PrivTr>::AssocTy; 49 | ^^^^^^^^^^^^^^^^^^^^^^^^ private associated type 50... 51LL | priv_trait::mac!(); 52 | ------------------ in this macro invocation 53 | 54 = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 55 56error: trait `PrivTr` is private 57 --> $DIR/associated-item-privacy-trait.rs:25:34 58 | 59LL | pub type InSignatureTy = <Pub as PrivTr>::AssocTy; 60 | ^^^^^^^^^^^^^^^^^^^^^^^^ private trait 61... 62LL | priv_trait::mac!(); 63 | ------------------ in this macro invocation 64 | 65 = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 66 67error: trait `PrivTr` is private 68 --> $DIR/associated-item-privacy-trait.rs:27:34 69 | 70LL | pub trait InSignatureTr: PrivTr {} 71 | ^^^^^^ private trait 72... 73LL | priv_trait::mac!(); 74 | ------------------ in this macro invocation 75 | 76 = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 77 78error: trait `PrivTr` is private 79 --> $DIR/associated-item-privacy-trait.rs:29:14 80 | 81LL | impl PrivTr for u8 {} 82 | ^^^^^^ private trait 83... 84LL | priv_trait::mac!(); 85 | ------------------ in this macro invocation 86 | 87 = note: this error originates in the macro `priv_trait::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 88 89error: type `priv_signature::Priv` is private 90 --> $DIR/associated-item-privacy-trait.rs:46:21 91 | 92LL | let value = <Pub as PubTr>::method; 93 | ^^^^^^^^^^^^^^^^^^^^^^ private type 94... 95LL | priv_signature::mac!(); 96 | ---------------------- in this macro invocation 97 | 98 = note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 99 100error: type `priv_signature::Priv` is private 101 --> $DIR/associated-item-privacy-trait.rs:48:9 102 | 103LL | value; 104 | ^^^^^ private type 105... 106LL | priv_signature::mac!(); 107 | ---------------------- in this macro invocation 108 | 109 = note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 110 111error: type `priv_signature::Priv` is private 112 --> $DIR/associated-item-privacy-trait.rs:50:13 113 | 114LL | Pub.method(loop {}); 115 | ^^^^^^ private type 116... 117LL | priv_signature::mac!(); 118 | ---------------------- in this macro invocation 119 | 120 = note: this error originates in the macro `priv_signature::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 121 122error: type `priv_substs::Priv` is private 123 --> $DIR/associated-item-privacy-trait.rs:67:21 124 | 125LL | let value = <Pub as PubTr>::method::<Priv>; 126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type 127... 128LL | priv_substs::mac!(); 129 | ------------------- in this macro invocation 130 | 131 = note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 132 133error: type `priv_substs::Priv` is private 134 --> $DIR/associated-item-privacy-trait.rs:69:9 135 | 136LL | value; 137 | ^^^^^ private type 138... 139LL | priv_substs::mac!(); 140 | ------------------- in this macro invocation 141 | 142 = note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 143 144error: type `priv_substs::Priv` is private 145 --> $DIR/associated-item-privacy-trait.rs:71:9 146 | 147LL | Pub.method::<Priv>(); 148 | ^^^^^^^^^^^^^^^^^^^^ private type 149... 150LL | priv_substs::mac!(); 151 | ------------------- in this macro invocation 152 | 153 = note: this error originates in the macro `priv_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 154 155error: type `priv_parent_substs::Priv` is private 156 --> $DIR/associated-item-privacy-trait.rs:91:21 157 | 158LL | let value = <Pub as PubTr>::method; 159 | ^^^^^^^^^^^^^^^^^^^^^^ private type 160... 161LL | priv_parent_substs::mac!(); 162 | -------------------------- in this macro invocation 163 | 164 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 165 166error: type `priv_parent_substs::Priv` is private 167 --> $DIR/associated-item-privacy-trait.rs:93:9 168 | 169LL | value; 170 | ^^^^^ private type 171... 172LL | priv_parent_substs::mac!(); 173 | -------------------------- in this macro invocation 174 | 175 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 176 177error: type `priv_parent_substs::Priv` is private 178 --> $DIR/associated-item-privacy-trait.rs:95:21 179 | 180LL | let value = <Pub as PubTr<_>>::method; 181 | ^^^^^^^^^^^^^^^^^^^^^^^^^ private type 182... 183LL | priv_parent_substs::mac!(); 184 | -------------------------- in this macro invocation 185 | 186 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 187 188error: type `priv_parent_substs::Priv` is private 189 --> $DIR/associated-item-privacy-trait.rs:97:9 190 | 191LL | value; 192 | ^^^^^ private type 193... 194LL | priv_parent_substs::mac!(); 195 | -------------------------- in this macro invocation 196 | 197 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 198 199error: type `priv_parent_substs::Priv` is private 200 --> $DIR/associated-item-privacy-trait.rs:99:9 201 | 202LL | Pub.method(); 203 | ^^^^^^^^^^^^ private type 204... 205LL | priv_parent_substs::mac!(); 206 | -------------------------- in this macro invocation 207 | 208 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 209 210error: type `priv_parent_substs::Priv` is private 211 --> $DIR/associated-item-privacy-trait.rs:102:21 212 | 213LL | let value = <Priv as PubTr<_>>::method; 214 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ private type 215... 216LL | priv_parent_substs::mac!(); 217 | -------------------------- in this macro invocation 218 | 219 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 220 221error: type `priv_parent_substs::Priv` is private 222 --> $DIR/associated-item-privacy-trait.rs:104:9 223 | 224LL | value; 225 | ^^^^^ private type 226... 227LL | priv_parent_substs::mac!(); 228 | -------------------------- in this macro invocation 229 | 230 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 231 232error: type `priv_parent_substs::Priv` is private 233 --> $DIR/associated-item-privacy-trait.rs:106:9 234 | 235LL | Priv.method(); 236 | ^^^^^^^^^^^^^ private type 237... 238LL | priv_parent_substs::mac!(); 239 | -------------------------- in this macro invocation 240 | 241 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 242 243error: type `priv_parent_substs::Priv` is private 244 --> $DIR/associated-item-privacy-trait.rs:109:9 245 | 246LL | <Pub as PubTr>::CONST; 247 | ^^^^^^^^^^^^^^^^^^^^^ private type 248... 249LL | priv_parent_substs::mac!(); 250 | -------------------------- in this macro invocation 251 | 252 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 253 254error: type `priv_parent_substs::Priv` is private 255 --> $DIR/associated-item-privacy-trait.rs:111:9 256 | 257LL | <Pub as PubTr<_>>::CONST; 258 | ^^^^^^^^^^^^^^^^^^^^^^^^ private type 259... 260LL | priv_parent_substs::mac!(); 261 | -------------------------- in this macro invocation 262 | 263 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 264 265error: type `priv_parent_substs::Priv` is private 266 --> $DIR/associated-item-privacy-trait.rs:113:9 267 | 268LL | <Priv as PubTr<_>>::CONST; 269 | ^^^^^^^^^^^^^^^^^^^^^^^^^ private type 270... 271LL | priv_parent_substs::mac!(); 272 | -------------------------- in this macro invocation 273 | 274 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 275 276error: type `priv_parent_substs::Priv` is private 277 --> $DIR/associated-item-privacy-trait.rs:117:30 278 | 279LL | let _: <Pub as PubTr<_>>::AssocTy; 280 | ^ private type 281... 282LL | priv_parent_substs::mac!(); 283 | -------------------------- in this macro invocation 284 | 285 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 286 287error: type `priv_parent_substs::Priv` is private 288 --> $DIR/associated-item-privacy-trait.rs:119:17 289 | 290LL | let _: <Priv as PubTr<_>>::AssocTy; 291 | ^^^^ private type 292... 293LL | priv_parent_substs::mac!(); 294 | -------------------------- in this macro invocation 295 | 296 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 297 298error: type `priv_parent_substs::Priv` is private 299 --> $DIR/associated-item-privacy-trait.rs:122:35 300 | 301LL | pub type InSignatureTy1 = <Pub as PubTr>::AssocTy; 302 | ^^^^^^^^^^^^^^^^^^^^^^^ private type 303... 304LL | priv_parent_substs::mac!(); 305 | -------------------------- in this macro invocation 306 | 307 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 308 309error: type `priv_parent_substs::Priv` is private 310 --> $DIR/associated-item-privacy-trait.rs:124:35 311 | 312LL | pub type InSignatureTy2 = <Priv as PubTr<Pub>>::AssocTy; 313 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type 314... 315LL | priv_parent_substs::mac!(); 316 | -------------------------- in this macro invocation 317 | 318 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 319 320error: type `priv_parent_substs::Priv` is private 321 --> $DIR/associated-item-privacy-trait.rs:126:14 322 | 323LL | impl PubTr for u8 {} 324 | ^^^^^ private type 325... 326LL | priv_parent_substs::mac!(); 327 | -------------------------- in this macro invocation 328 | 329 = note: this error originates in the macro `priv_parent_substs::mac` (in Nightly builds, run with -Z macro-backtrace for more info) 330 331error: aborting due to 30 previous errors 332 333