1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
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() {}