mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Ensure hover shows full type declaration
This commit is contained in:
parent
14c167a9f6
commit
3969c7c853
2 changed files with 19 additions and 2 deletions
|
@ -164,7 +164,7 @@ mod tests {
|
|||
let (analysis, file_id) = single_file(
|
||||
r#"
|
||||
struct Test<K, T = u8> {
|
||||
k: K,
|
||||
k: K,
|
||||
t: T,
|
||||
}
|
||||
|
||||
|
@ -176,7 +176,7 @@ fn main() {
|
|||
assert_debug_snapshot!(analysis.inlay_hints(file_id, None, false).unwrap(), @r###"
|
||||
[
|
||||
InlayHint {
|
||||
range: [65; 67),
|
||||
range: [69; 71),
|
||||
kind: TypeHint,
|
||||
label: "Test<i32>",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue