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 0416dec commit a2d142bCopy full SHA for a2d142b
crates/ide/src/inlay_hints/closing_brace.rs
@@ -196,6 +196,29 @@ fn f() {
196
];
197
}
198
//^ fn f
199
+"#,
200
+ );
201
+ }
202
+
203
+ #[test]
204
+ fn hints_closing_brace_for_block_expr() {
205
+ check_with_config(
206
+ InlayHintsConfig { closing_brace_hints_min_lines: Some(2), ..DISABLED_CONFIG },
207
+ r#"
208
+fn test() {
209
+ 'end: {
210
+ 'do_a: {
211
+ 'do_b: {
212
213
214
+ //^ 'do_b
215
+ break 'end;
216
217
+ //^ 'do_a
218
219
+ //^ 'end
220
221
+//^ fn test
222
"#,
223
);
224
0 commit comments