2023-01-01 12:53:50 -06:00
|
|
|
// ignore-tidy-linelength
|
|
|
|
|
|
|
|
#[repr(u32)]
|
|
|
|
// @is "$.index[*][?(@.name=='Foo')].attrs" '["#[repr(u32)]"]'
|
|
|
|
pub enum Foo {
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.name=='Tuple')].inner.variant.discriminant" null
|
|
|
|
// @count "$.index[*][?(@.name=='Tuple')].inner.variant.kind.tuple[*]" 0
|
2023-01-01 12:53:50 -06:00
|
|
|
Tuple(),
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.name=='TupleWithDiscr')].inner.variant.discriminant" '{"expr": "1", "value": "1"}'
|
|
|
|
// @count "$.index[*][?(@.name=='TupleWithDiscr')].inner.variant.kind.tuple[*]" 1
|
2023-01-01 12:53:50 -06:00
|
|
|
TupleWithDiscr(i32) = 1,
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.name=='TupleWithBinDiscr')].inner.variant.discriminant" '{"expr": "0b10", "value": "2"}'
|
|
|
|
// @count "$.index[*][?(@.name=='TupleWithBinDiscr')].inner.variant.kind.tuple[*]" 2
|
2023-01-01 12:53:50 -06:00
|
|
|
TupleWithBinDiscr(i32, i32) = 0b10,
|
|
|
|
}
|