1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
mod foo { pub struct Foo; } mod bar { pub trait Bar{} pub fn bar() -> Box<Bar> { unimplemented!() } } // This makes the publicly accessible path // differ from the internal one. pub use foo::Foo; pub use bar::{Bar, bar};