diff options
author | Lukas Wirth <[email protected]> | 2021-02-09 18:47:21 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-02-09 18:47:21 +0000 |
commit | e92180a1d8c964d386fc5ffb80bfb05abdb6c153 (patch) | |
tree | be07005b873aaf0931099bccef0bf4ceb3dab9d2 /crates/completion/src/completions/unqualified_path.rs | |
parent | 2f171ca78d306d105a9e36f8e509039d6a034c8e (diff) |
Show Self pattern completions for Adts if inside impls
Diffstat (limited to 'crates/completion/src/completions/unqualified_path.rs')
-rw-r--r-- | crates/completion/src/completions/unqualified_path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/completion/src/completions/unqualified_path.rs b/crates/completion/src/completions/unqualified_path.rs index fb67756bb..5112ecc2d 100644 --- a/crates/completion/src/completions/unqualified_path.rs +++ b/crates/completion/src/completions/unqualified_path.rs | |||
@@ -746,7 +746,7 @@ fn f() -> m::E { V$0 } | |||
746 | r#" | 746 | r#" |
747 | enum Foo { Bar, Baz, Quux } | 747 | enum Foo { Bar, Baz, Quux } |
748 | impl Foo { | 748 | impl Foo { |
749 | fn foo() { let foo: Foo = Q$0 } | 749 | fn foo() { match Foo::Bar { Q$0 } } |
750 | } | 750 | } |
751 | "#, | 751 | "#, |
752 | expect![[r#" | 752 | expect![[r#" |