1 2 3 4 5 6 7 8 9
mod inner { pub struct PubUnnameable; } pub struct Pub<T>(T); impl Pub<inner::PubUnnameable> { pub fn pub_method() {} }