mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
internal: completion: split out more PathKinds from ImmediateLocation
This commit is contained in:
parent
49b0970970
commit
ae0c7268f7
10 changed files with 206 additions and 160 deletions
|
@ -1000,6 +1000,19 @@ fn function() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn flyimport_item_name() {
|
||||
check(
|
||||
r#"
|
||||
mod module {
|
||||
pub struct Struct;
|
||||
}
|
||||
struct Str$0
|
||||
"#,
|
||||
expect![[r#""#]],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn flyimport_rename() {
|
||||
check(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue