Auto merge of #12135 - Veykril:hirdisp, r=Veykril
minor: Add a test for display rendering record variants
This commit is contained in:
commit
b0d092bcee
@ -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 }
|
||||
```
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user