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