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.rs14
1 files changed, 12 insertions, 2 deletions
diff --git a/crates/ide/src/hover/tests.rs b/crates/ide/src/hover/tests.rs
index 76d86f8ede..20d07bf991 100644
--- a/crates/ide/src/hover/tests.rs
+++ b/crates/ide/src/hover/tests.rs
@@ -4441,7 +4441,7 @@ fn foo() {
```rust
'label
```
- "#]],
+ "#]],
);
}
@@ -4455,7 +4455,17 @@ fn hover_lifetime() {
```rust
'lifetime
```
- "#]],
+ "#]],
+ );
+ check(
+ r#"fn foo(_: &'static$0 ()) {}"#,
+ expect![[r#"
+ *'static*
+
+ ```rust
+ 'static
+ ```
+ "#]],
);
}