Test for fuzzy unresolved path maatch

This commit is contained in:
Kirill Bulatov 2021-03-04 00:10:20 +02:00
parent 5b7d928075
commit 6ca6f101c1

View file

@ -921,4 +921,26 @@ fn main() {
}"#,
);
}
#[test]
fn fuzzy_unresolved_path() {
check(
r#"
mod foo {
pub mod bar {
pub struct Item;
impl Item {
pub const TEST_ASSOC: usize = 3;
}
}
}
fn main() {
let zz = "sdsd";
bar::Ass$0
}"#,
expect![[]],
)
}
}