1 error[E0446]: private type `m::Priv` in public interface
2 --> $DIR/private-inferred-type.rs:61:36
5 | - `m::Priv` declared as private
7 LL | impl TraitWithAssocTy for u8 { type AssocTy = Priv; }
8 | ^^^^^^^^^^^^^^^^^^^^ can't leak private type
10 error[E0446]: private type `adjust::S2` in public interface
11 --> $DIR/private-inferred-type.rs:83:9
14 | - `adjust::S2` declared as private
16 LL | type Target = S2Alias;
17 | ^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
19 error: type `m::Priv` is private
20 --> $DIR/private-inferred-type.rs:97:9
25 error: type `m::Priv` is private
26 --> $DIR/private-inferred-type.rs:97:12
29 | ^^^^^^^^ private type
31 error: type `m::Priv` is private
32 --> $DIR/private-inferred-type.rs:99:13
34 LL | let _: <m::Alias as m::TraitWithAssocTy>::AssocTy;
35 | ^^^^^^^^ private type
37 error: type `m::Priv` is private
38 --> $DIR/private-inferred-type.rs:100:5
41 | ^^^^^^^^^^^ private type
43 error: type `m::Priv` is private
44 --> $DIR/private-inferred-type.rs:101:5
46 LL | m::Pub { 0: m::Alias {} };
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^ private type
49 error: type `m::Priv` is private
50 --> $DIR/private-inferred-type.rs:103:5
52 LL | m::Pub::static_method;
53 | ^^^^^^^^^^^^^^^^^^^^^ private type
55 error: type `m::Priv` is private
56 --> $DIR/private-inferred-type.rs:104:5
58 LL | m::Pub::INHERENT_ASSOC_CONST;
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
61 error: type `m::Priv` is private
62 --> $DIR/private-inferred-type.rs:105:5
64 LL | m::Pub(0u8).method_with_substs::<m::Alias>();
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
67 error: type `m::Priv` is private
68 --> $DIR/private-inferred-type.rs:106:17
70 LL | m::Pub(0u8).method_with_priv_params(loop{});
71 | ^^^^^^^^^^^^^^^^^^^^^^^ private type
73 error: type `m::Priv` is private
74 --> $DIR/private-inferred-type.rs:107:5
76 LL | <m::Alias as m::TraitWithAssocConst>::TRAIT_ASSOC_CONST;
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
79 error: type `m::Priv` is private
80 --> $DIR/private-inferred-type.rs:108:6
82 LL | <m::Pub<m::Alias>>::INHERENT_ASSOC_CONST;
83 | ^^^^^^^^^^^^^^^^ private type
85 error: type `m::Priv` is private
86 --> $DIR/private-inferred-type.rs:109:5
88 LL | <m::Pub<m::Alias>>::INHERENT_ASSOC_CONST_GENERIC_SELF;
89 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
91 error: type `m::Priv` is private
92 --> $DIR/private-inferred-type.rs:110:5
94 LL | <m::Pub<m::Alias>>::static_method_generic_self;
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ private type
97 error: type `m::Priv` is private
98 --> $DIR/private-inferred-type.rs:112:5
101 | ^^^^^^^^^^^^^^ private type
103 error: type `adjust::S2` is private
104 --> $DIR/private-inferred-type.rs:114:5
106 LL | adjust::S1.method_s3();
107 | ^^^^^^^^^^ private type
109 error: type `fn() {m::priv_fn}` is private
110 --> $DIR/private-inferred-type.rs:39:9
113 | ^^^^^^^ private type
116 | -------- in this macro invocation
118 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
120 error: type `m::PrivEnum` is private
121 --> $DIR/private-inferred-type.rs:41:9
123 LL | PrivEnum::Variant;
124 | ^^^^^^^^^^^^^^^^^ private type
127 | -------- in this macro invocation
129 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
131 error: type `fn() {<u8 as m::PrivTrait>::method}` is private
132 --> $DIR/private-inferred-type.rs:43:9
134 LL | <u8 as PrivTrait>::method;
135 | ^^^^^^^^^^^^^^^^^^^^^^^^^ private type
138 | -------- in this macro invocation
140 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
142 error: type `fn(u8) -> m::PrivTupleStruct {m::PrivTupleStruct}` is private
143 --> $DIR/private-inferred-type.rs:45:9
145 LL | PrivTupleStruct;
146 | ^^^^^^^^^^^^^^^ private type
149 | -------- in this macro invocation
151 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
153 error: type `fn(u8) -> m::PubTupleStruct {m::PubTupleStruct}` is private
154 --> $DIR/private-inferred-type.rs:47:9
157 | ^^^^^^^^^^^^^^ private type
160 | -------- in this macro invocation
162 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
164 error: type `for<'r> fn(&'r m::Pub<u8>) {m::Pub::<u8>::priv_method}` is private
165 --> $DIR/private-inferred-type.rs:49:18
167 LL | Pub(0u8).priv_method();
168 | ^^^^^^^^^^^ private type
171 | -------- in this macro invocation
173 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
175 error: trait `m::Trait` is private
176 --> $DIR/private-inferred-type.rs:118:5
178 LL | m::leak_anon1();
179 | ^^^^^^^^^^^^^^^ private trait
181 error: type `m::Priv` is private
182 --> $DIR/private-inferred-type.rs:119:5
184 LL | m::leak_anon2();
185 | ^^^^^^^^^^^^^^^ private type
187 error: type `m::Priv` is private
188 --> $DIR/private-inferred-type.rs:120:5
190 LL | m::leak_anon3();
191 | ^^^^^^^^^^^^^^^ private type
193 error: trait `m::Trait` is private
194 --> $DIR/private-inferred-type.rs:122:5
197 | ^^^^^^^^^^^^^^ private trait
199 error: type `m::Priv` is private
200 --> $DIR/private-inferred-type.rs:123:5
203 | ^^^^^^^^^^^^^^ private type
205 error: type `m::Priv` is private
206 --> $DIR/private-inferred-type.rs:124:5
209 | ^^^^^^^^^^^^^^ private type
211 error: type `m::Priv` is private
212 --> $DIR/private-inferred-type.rs:127:13
214 LL | let a = m::Alias {};
215 | ^^^^^^^^^^^ private type
217 error: type `m::Priv` is private
218 --> $DIR/private-inferred-type.rs:128:17
223 error: type `m::Priv` is private
224 --> $DIR/private-inferred-type.rs:129:9
229 error: type `m::Priv` is private
230 --> $DIR/private-inferred-type.rs:130:11
235 error: aborting due to 33 previous errors
237 For more information about this error, try `rustc --explain E0446`.