rust/tests/ui/error-codes/E0365.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
166 B
Rust
Raw Normal View History

2016-08-06 14:44:49 -05:00
mod foo {
pub const X: u32 = 1;
}
2016-08-14 14:30:50 -05:00
pub use foo as foo2;
//~^ ERROR `foo` is only public within the crate, and cannot be re-exported outside [E0365]
2016-08-06 14:44:49 -05:00
fn main() {}