rust/tests/ui/imports/import-after-macro-expand-7.rs

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

22 lines
312 B
Rust
Raw Normal View History

//@ check-pass
// a compared case for `import-after-macro-expand-6.rs`
pub mod a {
pub use crate::b::*;
}
mod b {
mod http {
pub struct HeaderMap;
}
pub use self::http::*;
pub struct HeaderMap;
}
use crate::a::HeaderMap;
fn main() {
let h: crate::b::HeaderMap = HeaderMap;
}