1 // aux-build:private-inferred-type.rs
3 extern crate private_inferred_type as ext;
7 pub struct Pub<T>(pub T);
10 pub fn get_priv() -> Priv { Priv }
11 pub fn static_method() {}
16 m::Pub::get_priv; //~ ERROR type `Priv` is private
17 m::Pub::static_method; //~ ERROR type `Priv` is private
18 ext::Pub::static_method; //~ ERROR type `ext::Priv` is private