mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +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
|
//^ 'do_a
|
||||||
}
|
}
|
||||||
//^ 'end
|
//^ 'end
|
||||||
|
|
||||||
|
'a: loop {
|
||||||
|
'b: for i in 0..5 {
|
||||||
|
'c: while true {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
//^ 'c
|
||||||
|
}
|
||||||
|
//^ 'b
|
||||||
|
}
|
||||||
|
//^ 'a
|
||||||
|
|
||||||
}
|
}
|
||||||
//^ fn test
|
//^ fn test
|
||||||
"#,
|
"#,
|
||||||
|
|
Loading…
Reference in a new issue