diff options
author | Florian Diebold <[email protected]> | 2020-05-29 18:14:04 +0100 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2020-06-05 19:09:13 +0100 |
commit | a4a4a1854ebb53e1cdd7a5e3b308112bbbf3c676 (patch) | |
tree | 343d39c2a01bd3643bcab13eb01dfbd4f6a511cc /crates/ra_ide/src/hover.rs | |
parent | 02f7b5d7abbab829c2a0f66cdcbb6678afb412a4 (diff) |
Fix type parameter defaults
They should not be applied in expression or pattern contexts, unless there are
other explicitly given type args.
Diffstat (limited to 'crates/ra_ide/src/hover.rs')
-rw-r--r-- | crates/ra_ide/src/hover.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs index 62df07459..846d8c69b 100644 --- a/crates/ra_ide/src/hover.rs +++ b/crates/ra_ide/src/hover.rs | |||
@@ -529,7 +529,7 @@ struct Test<K, T = u8> { | |||
529 | } | 529 | } |
530 | 530 | ||
531 | fn main() { | 531 | fn main() { |
532 | let zz<|> = Test { t: 23, k: 33 }; | 532 | let zz<|> = Test { t: 23u8, k: 33 }; |
533 | }"#, | 533 | }"#, |
534 | &["Test<i32, u8>"], | 534 | &["Test<i32, u8>"], |
535 | ); | 535 | ); |