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 30644fe2db..2bd79d79df 100644 --- a/crates/ide/src/hover/tests.rs +++ b/crates/ide/src/hover/tests.rs @@ -9422,6 +9422,27 @@ fn main(a$0: impl T) {} } #[test] +fn hover_impl_trait_arg_with_anon_const_arg_does_not_recurse() { + check( + r#" +trait Tr<const N: usize> {} +pub fn f(x$0: impl Tr<{ 0 }>) {} +"#, + expect![[r#" + *x* + + ```rust + x: impl Tr<{const}> + ?Sized + ``` + + --- + + type param may need Drop + "#]], + ); +} + +#[test] fn hover_struct_default_arg_self() { check( r#" |