mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 21:13:37 +00:00
test: add test case for inlay hint support for expr with label
This commit is contained in:
parent
722020e63f
commit
747615d95b
1 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
"#,
|
||||
|
|
Loading…
Reference in a new issue