1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22

pub use aaa::exp;

/// The abc mod
pub mod abc {
    /// This is public
    pub fn def() {}

    /// This is not
    fn hij() {}
}

/// This should be seen with --no-defaults
mod aaa {
    /// So should this
    fn kkk() {}
    /// And this
    pub fn lll() {}

    /// This is exported
    pub fn exp() {}
}