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.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/ide/src/hover/tests.rs b/crates/ide/src/hover/tests.rs
index 12beff3b90..0d8fc8a5f7 100644
--- a/crates/ide/src/hover/tests.rs
+++ b/crates/ide/src/hover/tests.rs
@@ -307,11 +307,12 @@ fn main() {
fn hover_ranged_closure() {
check_hover_range(
r#"
+//- minicore: fn
struct S;
struct S2;
fn main() {
let x = &S;
- let y = $0|| {x; S2}$0;
+ let y = ($0|| {x; S2}$0).call();
}
"#,
expect![[r#"
@@ -319,17 +320,19 @@ fn main() {
{closure#0} // size = 8, align = 8
impl FnOnce() -> S2
```
+ Coerced to: &impl FnOnce() -> S2
## Captures
* `x` by move"#]],
);
check_hover_range_actions(
r#"
+//- minicore: fn
struct S;
struct S2;
fn main() {
let x = &S;
- let y = $0|| {x; S2}$0;
+ let y = ($0|| {x; S2}$0).call();
}
"#,
expect![[r#"