6 pub fn f(_: Priv) {} //~ WARN private type `m1::Priv` in public interface
7 //~^ WARNING hard error
11 pub fn f(_: Priv) {} // ok
17 impl ::std::ops::Deref for ::SemiPriv {
18 type Target = Priv; //~ ERROR private type `m2::Priv` in public interface
19 fn deref(&self) -> &Self::Target { unimplemented!() }
22 impl ::std::ops::Deref for Priv {
23 type Target = Priv; // ok
24 fn deref(&self) -> &Self::Target { unimplemented!() }
34 impl ::SemiPrivTrait for () {
35 type Assoc = Priv; //~ ERROR private type `m3::Priv` in public interface