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

@ -1443,14 +1443,14 @@ fn main() {
//^^^^^^^^^ i32
let multiply =
//^^^^^^^^ || -> i32
//^^^^^^^^ |i32, i32| -> i32
| a, b| a * b
//^ i32 ^ i32
;
let _: i32 = multiply(1, 2);
let multiply_ref = &multiply;
//^^^^^^^^^^^^ &|| -> i32
//^^^^^^^^^^^^ &|i32, i32| -> i32
let return_42 = || 42;
//^^^^^^^^^ || -> i32