aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide_completion')
-rw-r--r--crates/ide_completion/src/completions/postfix.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/crates/ide_completion/src/completions/postfix.rs b/crates/ide_completion/src/completions/postfix.rs
index c11deebcb..4e20ec003 100644
--- a/crates/ide_completion/src/completions/postfix.rs
+++ b/crates/ide_completion/src/completions/postfix.rs
@@ -509,18 +509,15 @@ fn main() {
509 check_edit( 509 check_edit(
510 "ifl", 510 "ifl",
511 r#" 511 r#"
512enum Option<T> { Some(T), None } 512//- minicore: option
513
514fn main() { 513fn main() {
515 let bar = &Option::Some(true); 514 let bar = &Some(true);
516 bar.$0 515 bar.$0
517} 516}
518"#, 517"#,
519 r#" 518 r#"
520enum Option<T> { Some(T), None }
521
522fn main() { 519fn main() {
523 let bar = &Option::Some(true); 520 let bar = &Some(true);
524 if let Some($1) = bar { 521 if let Some($1) = bar {
525 $0 522 $0
526} 523}