mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
internal: add test case for inlay hint support for block expr with lifetime label
This commit is contained in:
parent
0416dec50a
commit
a2d142b9f2
@ -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…
x
Reference in New Issue
Block a user