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