Skip to content

Commit 36758a2

Browse files
Add regression test for stripped enum variant fields
1 parent c4a5ac2 commit 36758a2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Regression test for <https://github.com/rust-lang/rust/issues/100529>.
2+
3+
#![no_core]
4+
#![feature(no_core)]
5+
6+
// @has enum_variant_hidden.json "$.index[*][?(@.name=='ParseError')]"
7+
// @has - "$.index[*][?(@.name=='UnexpectedEndTag')]"
8+
// @is - "$.index[*][?(@.name=='UnexpectedEndTag')].inner.variant_kind" '"tuple"'
9+
// @is - "$.index[*][?(@.name=='UnexpectedEndTag')].inner.variant_inner" []
10+
11+
pub enum ParseError {
12+
UnexpectedEndTag(#[doc(hidden)] u32),
13+
}

0 commit comments

Comments
 (0)