fix: ide: exclude sized in go-to actions

This commit is contained in:
Jake Heinz 2023-05-02 08:19:59 +00:00
parent 2fdd1ac510
commit 3132a9e7fc
3 changed files with 24 additions and 3 deletions

View file

@ -2098,6 +2098,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(