mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Test for fuzzy unresolved path maatch
This commit is contained in:
parent
5b7d928075
commit
6ca6f101c1
1 changed files with 22 additions and 0 deletions
|
@ -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![[]],
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue