internal: add test case for inlay hint support for block expr with lifetime label

This commit is contained in:
Young-Flash 2024-07-19 22:31:28 +08:00
parent 0416dec50a
commit a2d142b9f2

View File

@ -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
"#,
);
}