rust/src/test/ui/error-codes/E0365.rs
2018-12-25 21:08:33 -07:00

9 lines
137 B
Rust

mod foo {
pub const X: u32 = 1;
}
pub use foo as foo2;
//~^ ERROR `foo` is private, and cannot be re-exported [E0365]
fn main() {}