summaryrefslogtreecommitdiffstats
path: root/tests/run-make/type-mismatch-same-crate-name/crateA.rs
blob: 4871c8c2e9ccd5f3f6bc425cfc2c0aac22c7982d (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 foo::Foo;
pub use bar::{Bar, bar};