mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
fix: Omit generic defaults for types in hover messages
This commit is contained in:
parent
a07e406d06
commit
ec07bb98f8
4 changed files with 17 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue