Properly handle imports ending in ::self

This commit is contained in:
moxian 2025-03-30 20:34:20 -07:00 committed by nora
parent a87558adf7
commit ecf52e2d3b
2 changed files with 62 additions and 5 deletions

15
full-tests/reexports2.rs Normal file
View file

@ -0,0 +1,15 @@
mod A {
/// ~REQUIRE-DELETED S1
pub struct S1;
pub struct S2;
}
mod B {
use crate::A::{self, S1};
pub use A::S2 as thingy;
}
fn main() {
"~MINIMIZE-ROOT let x = B::thingy";
let x = B::thingy;
}