We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 017331a commit 34db4edCopy full SHA for 34db4ed
crates/ra_assists/src/handlers/fill_match_arms.rs
@@ -350,6 +350,40 @@ mod tests {
350
);
351
}
352
353
+ #[test]
354
+ fn partial_fill_bind_pat() {
355
+ check_assist(
356
+ fill_match_arms,
357
+ r#"
358
+ enum A {
359
+ As,
360
+ Bs,
361
+ Cs(Option<i32>),
362
+ }
363
+ fn main() {
364
+ match A::As<|> {
365
+ A::As(_) => {}
366
+ a @ A::Bs(_) => {}
367
368
369
+ "#,
370
371
372
373
374
375
376
377
+ match A::As {
378
379
380
+ $0A::Cs(_) => {}
381
382
383
384
+ );
385
386
+
387
#[test]
388
fn fill_match_arms_empty_body() {
389
check_assist(
0 commit comments