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.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/ide/src/hover/tests.rs b/crates/ide/src/hover/tests.rs
index 082e5372d4..64df511e46 100644
--- a/crates/ide/src/hover/tests.rs
+++ b/crates/ide/src/hover/tests.rs
@@ -2099,6 +2099,19 @@ fn main() { let s$0t = S{ f1:Arg(0) }; }
}
#[test]
+fn test_hover_generic_excludes_sized_go_to_action() {
+ check_actions(
+ r#"
+//- minicore: sized
+struct S<T$0>(T);
+ "#,
+ expect![[r#"
+ []
+ "#]],
+ );
+}
+
+#[test]
fn test_hover_generic_struct_has_flattened_goto_type_actions() {
check_actions(
r#"