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 df0ca941c9..ab10bc6ef5 100644 --- a/crates/ide/src/hover/tests.rs +++ b/crates/ide/src/hover/tests.rs @@ -2914,6 +2914,27 @@ fn main() { } #[test] +fn const_generic_order() { + check( + r#" +struct Foo; +struct S$0T<const C: usize = 1, T = Foo>(T); +"#, + expect![[r#" + *ST* + + ```rust + test + ``` + + ```rust + struct ST<const C: usize, T = Foo> + ``` + "#]], + ); +} + +#[test] fn hover_self_param_shows_type() { check( r#" |