internal: add test case for inlay hint support for block expr with lifetime label
This commit is contained in:
parent
aee0e30bed
commit
7bff592cad
1 changed files with 23 additions and 0 deletions
|
|
@ -196,6 +196,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
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue