mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
fix: Fix flyimport showing functions in pattern position
This commit is contained in:
parent
6a0b199c82
commit
7370a6b5b8
3 changed files with 19 additions and 13 deletions
|
@ -1030,15 +1030,18 @@ fn flyimport_pattern() {
|
|||
check(
|
||||
r#"
|
||||
mod module {
|
||||
pub struct Struct;
|
||||
pub struct FooStruct {}
|
||||
pub const FooConst: () = ();
|
||||
pub fn foo_fun() {}
|
||||
}
|
||||
fn function() {
|
||||
let Str$0
|
||||
let foo$0
|
||||
}
|
||||
"#,
|
||||
expect![[r#"
|
||||
st Struct (use module::Struct)
|
||||
"#]],
|
||||
ct FooConst (use module::FooConst)
|
||||
st FooStruct (use module::FooStruct)
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue