Closed
Description
Test case:
fn main() {}
pub mod a {
pub struct FontFamily;
impl FontFamily {
pub fn to_css(&self) -> ::std::fmt::Result {
Ok(())
}
}
}
macro_rules! reexport {
() => {
mod b {
pub use a;
}
}
}
reexport!();
pub mod c {
use b::a::FontFamily;
pub fn d(_x: &FontFamily) {}
}
Compiles successfully on 58d58c2, causes an ICE on 551cb06. Diff 58d58c2...551cb06 contains only #38171, CC @jseyfried, @nrc.
Found while trying to minimize #38535, but filed separately since the error message is different and this one has a small test case.