Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/hover/tests.rs')
| -rw-r--r-- | crates/ide/src/hover/tests.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/ide/src/hover/tests.rs b/crates/ide/src/hover/tests.rs index df27f935c8..96cd83b924 100644 --- a/crates/ide/src/hover/tests.rs +++ b/crates/ide/src/hover/tests.rs @@ -3362,6 +3362,27 @@ fn foo<T$0: Sized + ?Sized + Sized + Trait>() {} } #[test] +fn hover_const_generic_type_alias() { + check( + r#" +struct Foo<const LEN: usize>; +type Fo$0o2 = Foo<2>; +"#, + expect![[r#" + *Foo2* + + ```rust + test + ``` + + ```rust + type Foo2 = Foo<2> + ``` + "#]], + ); +} + +#[test] fn hover_const_param() { check( r#" |