rust/tests/ui/resolve/issue-116164.rs

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

20 lines
295 B
Rust
Raw Normal View History

#![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
}