mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
ide: display static values in hover
This commit is contained in:
parent
64a73dcfba
commit
e8d0989606
3 changed files with 30 additions and 20 deletions
|
@ -539,16 +539,16 @@ const foo$0: u32 = {
|
|||
check(
|
||||
r#"static foo$0: u32 = 456;"#,
|
||||
expect![[r#"
|
||||
*foo*
|
||||
*foo*
|
||||
|
||||
```rust
|
||||
test
|
||||
```
|
||||
```rust
|
||||
test
|
||||
```
|
||||
|
||||
```rust
|
||||
static foo: u32
|
||||
```
|
||||
"#]],
|
||||
```rust
|
||||
static foo: u32 = 456
|
||||
```
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue