mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
25 lines
490 B
Rust
25 lines
490 B
Rust
// check-pass
|
|
// https://github.com/rust-lang/rust/pull/113099#issuecomment-1633574396
|
|
|
|
pub mod a {
|
|
pub use crate::b::*;
|
|
}
|
|
|
|
mod b {
|
|
pub mod http {
|
|
pub struct HeaderMap;
|
|
}
|
|
|
|
pub use self::http::*;
|
|
#[derive(Debug)]
|
|
pub struct HeaderMap;
|
|
}
|
|
|
|
use crate::a::HeaderMap;
|
|
|
|
fn main() {
|
|
let h: crate::b::http::HeaderMap = HeaderMap;
|
|
// FIXME: should refer to `crate::b::HeaderMap`,
|
|
// FIXME: but doesn't currently refer to it due to backward compatibility
|
|
}
|