Skip to content

Commit 747615d

Browse files
committed
test: add test case for inlay hint support for expr with label
1 parent 722020e commit 747615d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

crates/ide/src/inlay_hints/closing_brace.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,19 @@ fn test() {
240240
//^ 'do_a
241241
}
242242
//^ 'end
243+
244+
'a: loop {
245+
'b: for i in 0..5 {
246+
'c: while true {
247+
248+
249+
}
250+
//^ 'c
251+
}
252+
//^ 'b
253+
}
254+
//^ 'a
255+
243256
}
244257
//^ fn test
245258
"#,

0 commit comments

Comments
 (0)