more complicated const test

This commit is contained in:
Jake Heinz 2021-11-18 04:14:11 +00:00
parent d5de7c21b2
commit aef8882254

View file

@ -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#"