fix: Allow flyimport to import primitive shadowing modules

This commit is contained in:
Lukas Wirth 2024-07-21 13:26:19 +02:00
parent 062822ce91
commit 0851d21d1e
4 changed files with 28 additions and 2 deletions

View file

@ -1618,3 +1618,18 @@ pub struct FooStruct;
"#]],
);
}
#[test]
fn primitive_mod() {
check(
r#"
//- minicore: str
fn main() {
str::from$0
}
"#,
expect![[r#"
fn from_utf8_unchecked() (use core::str) const unsafe fn(&[u8]) -> &str
"#]],
);
}