mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
20 lines
295 B
Rust
20 lines
295 B
Rust
#![allow(unused_imports)]
|
|
|
|
mod inner {
|
|
pub enum Example {
|
|
ExOne,
|
|
}
|
|
}
|
|
|
|
mod reexports {
|
|
pub use crate::inner::Example as _;
|
|
}
|
|
|
|
use crate::reexports::*;
|
|
//~^ SUGGESTION: use inner::Example::ExOne
|
|
|
|
fn main() {
|
|
ExOne;
|
|
//~^ ERROR: cannot find value `ExOne` in this scope
|
|
}
|