Skip to content

Commit

Permalink
internal: add test case for inlay hint support for block expr with li…
Browse files Browse the repository at this point in the history
…fetime label
  • Loading branch information
Young-Flash committed Jul 19, 2024
1 parent bd0cc82 commit 66ee618
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions crates/ide/src/inlay_hints/closing_brace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,29 @@ fn f() {
];
}
//^ fn f
"#,
);
}

#[test]
fn hints_closing_brace_for_block_expr() {
check_with_config(
InlayHintsConfig { closing_brace_hints_min_lines: Some(2), ..DISABLED_CONFIG },
r#"
fn test() {
'end: {
'do_a: {
'do_b: {
}
//^ 'do_b
break 'end;
}
//^ 'do_a
}
//^ 'end
}
//^ fn test
"#,
);
}
Expand Down

0 comments on commit 66ee618

Please sign in to comment.