Skip to content

Commit b0d092b

Browse files
committed
Auto merge of rust-lang#12135 - Veykril:hirdisp, r=Veykril
minor: Add a test for display rendering record variants
2 parents 29ccf5c + b6e19ad commit b0d092b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

crates/ide/src/hover/tests.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4676,3 +4676,25 @@ pub struct Type;
46764676
"#]],
46774677
);
46784678
}
4679+
4680+
#[test]
4681+
fn hover_record_variant() {
4682+
check(
4683+
r#"
4684+
enum Enum {
4685+
RecordV$0 { field: u32 }
4686+
}
4687+
"#,
4688+
expect![[r#"
4689+
*RecordV*
4690+
4691+
```rust
4692+
test::Enum
4693+
```
4694+
4695+
```rust
4696+
RecordV { field: u32 }
4697+
```
4698+
"#]],
4699+
);
4700+
}

0 commit comments

Comments
 (0)