mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
more complicated const test
This commit is contained in:
parent
d5de7c21b2
commit
aef8882254
1 changed files with 22 additions and 0 deletions
|
@ -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#"
|
||||
|
|
Loading…
Reference in a new issue