fix: Omit generic defaults for types in hover messages

This commit is contained in:
Lukas Wirth 2021-11-22 18:27:03 +01:00
parent a07e406d06
commit ec07bb98f8
4 changed files with 17 additions and 5 deletions

View file

@ -607,10 +607,22 @@ fn main() {
*zz*
```rust
let zz: Test<i32, u8>
let zz: Test<i32>
```
"#]],
);
check_hover_range(
r#"
struct Test<K, T = u8> { k: K, t: T }
fn main() {
let $0zz$0 = Test { t: 23u8, k: 33 };
}"#,
expect![[r#"
```rust
Test<i32, u8>
```"#]],
);
}
#[test]