diff --git a/crates/ide/src/hover/tests.rs b/crates/ide/src/hover/tests.rs index 329e6b177f..897f8d7b83 100644 --- a/crates/ide/src/hover/tests.rs +++ b/crates/ide/src/hover/tests.rs @@ -514,6 +514,28 @@ fn hover_const_static() { ``` "#]], ); + check( + r#" +const foo$0: u32 = { + let x = foo(); + x + 100 +};"#, + expect![[r#" + *foo* + + ```rust + test + ``` + + ```rust + const foo: u32 = { + let x = foo(); + x + 100 + } + ``` + "#]], + ); + check( r#"static foo$0: u32 = 456;"#, expect![[r#"