mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
fix: ide: exclude sized in go-to actions
This commit is contained in:
parent
2fdd1ac510
commit
3132a9e7fc
3 changed files with 24 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue