diff options
| author | Young-Flash <dongyang@apache.org> | 2024-08-04 19:19:15 +0800 |
|---|---|---|
| committer | Young-Flash <dongyang@apache.org> | 2024-08-04 19:19:15 +0800 |
| commit | a95ff26fdcb065dbd03bda0e9a69423338bb335f (patch) | |
| tree | 2525fec1667746c52a49a9613244b5922a166b1a | |
| parent | cce9da3befb9226b85c66a9aa5dd88ef9c747d1c (diff) | |
| download | rust-a95ff26fdcb065dbd03bda0e9a69423338bb335f.tar.gz rust-a95ff26fdcb065dbd03bda0e9a69423338bb335f.zip | |
test: add test case for inlay hint support for expr with label
| -rw-r--r-- | src/tools/rust-analyzer/crates/ide/src/inlay_hints/closing_brace.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/ide/src/inlay_hints/closing_brace.rs b/src/tools/rust-analyzer/crates/ide/src/inlay_hints/closing_brace.rs index 318fe1c9396..9b7e708848b 100644 --- a/src/tools/rust-analyzer/crates/ide/src/inlay_hints/closing_brace.rs +++ b/src/tools/rust-analyzer/crates/ide/src/inlay_hints/closing_brace.rs @@ -240,6 +240,19 @@ fn test() { //^ 'do_a } //^ 'end + + 'a: loop { + 'b: for i in 0..5 { + 'c: while true { + + + } + //^ 'c + } + //^ 'b + } + //^ 'a + } //^ fn test "#, |
