diff options
Diffstat (limited to 'crates/ide_completion')
-rw-r--r-- | crates/ide_completion/src/completions/postfix.rs | 9 |
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#" |
512 | enum Option<T> { Some(T), None } | 512 | //- minicore: option |
513 | |||
514 | fn main() { | 513 | fn 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#" |
520 | enum Option<T> { Some(T), None } | ||
521 | |||
522 | fn main() { | 519 | fn 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 | } |