mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
15 lines
388 B
Rust
15 lines
388 B
Rust
mod options {
|
|
pub struct ParseOptions {}
|
|
}
|
|
|
|
mod parser {
|
|
pub use options::*;
|
|
// Private single import shadows public glob import, but arrives too late for initial
|
|
// resolution of `use parser::ParseOptions` because it depends on that resolution itself.
|
|
use ParseOptions;
|
|
}
|
|
|
|
pub use parser::ParseOptions; //~ ERROR struct import `ParseOptions` is private
|
|
|
|
fn main() {}
|