mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
24 lines
300 B
Rust
24 lines
300 B
Rust
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() {}
|