about summary refs log tree commit diff
path: root/tests/run-make/type-mismatch-same-crate-name/crateA.rs
blob: 7ad8fd2a6480b06be5f1f14be189c6030621ad02 (plain)
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 bar::{Bar, bar};
pub use foo::Foo;