fix: Fix flyimport showing functions in pattern position

This commit is contained in:
Lukas Wirth 2022-03-21 19:41:39 +01:00
parent 6a0b199c82
commit 7370a6b5b8
3 changed files with 19 additions and 13 deletions

View file

@ -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)
"#]],
);
}