summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0365.rs
blob: 464109247c9bab81b2d77a4e5b8940b5e162ddab (plain)
1
2
3
4
5
6
7
8
mod foo {
    pub const X: u32 = 1;
}

pub use foo as foo2;
//~^ ERROR `foo` is only public within the crate, and cannot be re-exported outside [E0365]

fn main() {}