From: Jake Heinz Date: Thu, 18 Nov 2021 04:14:11 +0000 (+0000) Subject: more complicated const test X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=aef8882254e1443fb68d449be5f8006c46533c5a;hp=d5de7c21b27e7ad2ba92c6ce8f386d226bcc6adc;p=rust.git more complicated const test --- diff --git a/crates/ide/src/hover/tests.rs b/crates/ide/src/hover/tests.rs index 329e6b177f4..897f8d7b831 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#"