minor: Add a test for display rendering record variants

This commit is contained in:
Lukas Wirth 2022-05-02 12:51:00 +02:00
parent 4f97950595
commit b6e19add06

View File

@ -4676,3 +4676,25 @@ macro_rules! m {
"#]],
);
}
#[test]
fn hover_record_variant() {
check(
r#"
enum Enum {
RecordV$0 { field: u32 }
}
"#,
expect![[r#"
*RecordV*
```rust
test::Enum
```
```rust
RecordV { field: u32 }
```
"#]],
);
}