Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit a95ff26

Browse files
committed
test: add test case for inlay hint support for expr with label
1 parent cce9da3 commit a95ff26

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/tools/rust-analyzer/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)