| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:107:9 |
| | |
| LL | let _: m::Alias; //~ ERROR type `m::Priv` is private |
| | ^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:107:12 |
| | |
| LL | let _: m::Alias; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:109:13 |
| | |
| LL | let _: <m::Alias as m::TraitWithAssocTy>::AssocTy; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:110:5 |
| | |
| LL | m::Alias {}; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:111:5 |
| | |
| LL | m::Pub { 0: m::Alias {} }; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:113:5 |
| | |
| LL | m::Pub::static_method; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:114:5 |
| | |
| LL | m::Pub::INHERENT_ASSOC_CONST; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:115:5 |
| | |
| LL | m::Pub(0u8).method_with_substs::<m::Alias>(); //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:116:17 |
| | |
| LL | m::Pub(0u8).method_with_priv_params(loop{}); //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:117:5 |
| | |
| LL | <m::Alias as m::TraitWithAssocConst>::TRAIT_ASSOC_CONST; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:118:6 |
| | |
| LL | <m::Pub<m::Alias>>::INHERENT_ASSOC_CONST; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:119:5 |
| | |
| LL | <m::Pub<m::Alias>>::INHERENT_ASSOC_CONST_GENERIC_SELF; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:120:5 |
| | |
| LL | <m::Pub<m::Alias>>::static_method_generic_self; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:122:5 |
| | |
| LL | u8::pub_method; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^ |
| |
| error: type `adjust::S2` is private |
| --> $DIR/private-inferred-type.rs:124:5 |
| | |
| LL | adjust::S1.method_s3(); //~ ERROR type `adjust::S2` is private |
| | ^^^^^^^^^^ |
| |
| error: type `fn() {m::priv_fn}` is private |
| --> $DIR/private-inferred-type.rs:49:9 |
| | |
| LL | priv_fn; //~ ERROR type `fn() {m::priv_fn}` is private |
| | ^^^^^^^ |
| ... |
| LL | m::m!(); |
| | -------- in this macro invocation |
| |
| error: type `m::PrivEnum` is private |
| --> $DIR/private-inferred-type.rs:51:9 |
| | |
| LL | PrivEnum::Variant; //~ ERROR type `m::PrivEnum` is private |
| | ^^^^^^^^^^^^^^^^^ |
| ... |
| LL | m::m!(); |
| | -------- in this macro invocation |
| |
| error: type `fn() {<u8 as m::PrivTrait>::method}` is private |
| --> $DIR/private-inferred-type.rs:53:9 |
| | |
| LL | <u8 as PrivTrait>::method; //~ ERROR type `fn() {<u8 as m::PrivTrait>::method}` is private |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^ |
| ... |
| LL | m::m!(); |
| | -------- in this macro invocation |
| |
| error: type `fn(u8) -> m::PrivTupleStruct {m::PrivTupleStruct::{{constructor}}}` is private |
| --> $DIR/private-inferred-type.rs:55:9 |
| | |
| LL | PrivTupleStruct; |
| | ^^^^^^^^^^^^^^^ |
| ... |
| LL | m::m!(); |
| | -------- in this macro invocation |
| |
| error: type `fn(u8) -> m::PubTupleStruct {m::PubTupleStruct::{{constructor}}}` is private |
| --> $DIR/private-inferred-type.rs:57:9 |
| | |
| LL | PubTupleStruct; |
| | ^^^^^^^^^^^^^^ |
| ... |
| LL | m::m!(); |
| | -------- in this macro invocation |
| |
| error: type `for<'r> fn(&'r m::Pub<u8>) {<m::Pub<u8>>::priv_method}` is private |
| --> $DIR/private-inferred-type.rs:59:18 |
| | |
| LL | Pub(0u8).priv_method(); |
| | ^^^^^^^^^^^ |
| ... |
| LL | m::m!(); |
| | -------- in this macro invocation |
| |
| error: trait `m::Trait` is private |
| --> $DIR/private-inferred-type.rs:128:5 |
| | |
| LL | m::leak_anon1(); //~ ERROR trait `m::Trait` is private |
| | ^^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:129:5 |
| | |
| LL | m::leak_anon2(); //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:130:5 |
| | |
| LL | m::leak_anon3(); //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^^ |
| |
| error: type `(dyn m::Trait + 'static)` is private |
| --> $DIR/private-inferred-type.rs:132:5 |
| | |
| LL | m::leak_dyn1(); //~ ERROR type `(dyn m::Trait + 'static)` is private |
| | ^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:133:5 |
| | |
| LL | m::leak_dyn2(); //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:134:5 |
| | |
| LL | m::leak_dyn3(); //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:137:13 |
| | |
| LL | let a = m::Alias {}; //~ ERROR type `m::Priv` is private |
| | ^^^^^^^^^^^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:138:17 |
| | |
| LL | let mut b = a; //~ ERROR type `m::Priv` is private |
| | ^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:139:9 |
| | |
| LL | b = a; //~ ERROR type `m::Priv` is private |
| | ^ |
| |
| error: type `m::Priv` is private |
| --> $DIR/private-inferred-type.rs:140:11 |
| | |
| LL | match a { //~ ERROR type `m::Priv` is private |
| | ^ |
| |
| error[E0446]: private type `m::Priv` in public interface |
| --> $DIR/private-inferred-type.rs:71:36 |
| | |
| LL | struct Priv; |
| | - `m::Priv` declared as private |
| ... |
| LL | impl TraitWithAssocTy for u8 { type AssocTy = Priv; } |
| | ^^^^^^^^^^^^^^^^^^^^ can't leak private type |
| |
| error[E0446]: private type `adjust::S2` in public interface |
| --> $DIR/private-inferred-type.rs:93:9 |
| | |
| LL | struct S2; |
| | - `adjust::S2` declared as private |
| ... |
| LL | type Target = S2Alias; //~ ERROR private type `adjust::S2` in public interface |
| | ^^^^^^^^^^^^^^^^^^^^^^ can't leak private type |
| |
| error: aborting due to 33 previous errors |
| |
| For more information about this error, try `rustc --explain E0446`. |