rust/tests/ui/imports/issue-81413.rs

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

24 lines
300 B
Rust
Raw Normal View History

pub const ITEM: Item = Item;
pub struct Item;
pub fn item() {}
pub use doesnt_exist::*;
//~^ ERROR unresolved import `doesnt_exist`
mod a {
use crate::{item, Item, ITEM};
}
mod b {
use crate::item;
use crate::Item;
use crate::ITEM;
}
mod c {
use crate::item;
}
fn main() {}