Skip to content

Commit

Permalink
Auto merge of rust-lang#12135 - Veykril:hirdisp, r=Veykril
Browse files Browse the repository at this point in the history
minor: Add a test for display rendering record variants
  • Loading branch information
bors committed May 2, 2022
2 parents 29ccf5c + b6e19ad commit b0d092b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions crates/ide/src/hover/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
```
"#]],
);
}

0 comments on commit b0d092b

Please sign in to comment.