mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
minor: Add a test for display rendering record variants
This commit is contained in:
parent
4f97950595
commit
b6e19add06
1 changed files with 22 additions and 0 deletions
|
@ -4676,3 +4676,25 @@ pub struct Type;
|
||||||
"#]],
|
"#]],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn hover_record_variant() {
|
||||||
|
check(
|
||||||
|
r#"
|
||||||
|
enum Enum {
|
||||||
|
RecordV$0 { field: u32 }
|
||||||
|
}
|
||||||
|
"#,
|
||||||
|
expect![[r#"
|
||||||
|
*RecordV*
|
||||||
|
|
||||||
|
```rust
|
||||||
|
test::Enum
|
||||||
|
```
|
||||||
|
|
||||||
|
```rust
|
||||||
|
RecordV { field: u32 }
|
||||||
|
```
|
||||||
|
"#]],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue