Skip to content

Commit aef8882

Browse files
committed
more complicated const test
1 parent d5de7c2 commit aef8882

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

crates/ide/src/hover/tests.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,28 @@ fn hover_const_static() {
514514
```
515515
"#]],
516516
);
517+
check(
518+
r#"
519+
const foo$0: u32 = {
520+
let x = foo();
521+
x + 100
522+
};"#,
523+
expect![[r#"
524+
*foo*
525+
526+
```rust
527+
test
528+
```
529+
530+
```rust
531+
const foo: u32 = {
532+
let x = foo();
533+
x + 100
534+
}
535+
```
536+
"#]],
537+
);
538+
517539
check(
518540
r#"static foo$0: u32 = 456;"#,
519541
expect![[r#"

0 commit comments

Comments
 (0)