mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
21 lines
312 B
Rust
21 lines
312 B
Rust
//@ edition:2015
|
|
#![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
|
|
}
|