mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
fix: Don't trigger pattern completions when typing a wildcard pattern
This commit is contained in:
parent
6e9c963348
commit
1f028403cd
2 changed files with 17 additions and 1 deletions
|
@ -13,6 +13,18 @@ fn check(ra_fixture: &str, expect: Expect) {
|
|||
expect.assert_eq(&actual)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn wildcard() {
|
||||
check(
|
||||
r#"
|
||||
fn quux() {
|
||||
let _$0
|
||||
}
|
||||
"#,
|
||||
expect![""],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ident_rebind_pat() {
|
||||
check_empty(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue