rust/tests/rustdoc-json/enums/discriminant/only_some_have_discriminant.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
461 B
Rust
Raw Normal View History

// ignore-tidy-linelength
2022-09-03 13:36:28 -05:00
pub enum Foo {
// @is "$.index[*][?(@.name=='Has')].inner.variant.discriminant" '{"expr":"0", "value":"0"}'
2022-09-03 13:36:28 -05:00
Has = 0,
// @is "$.index[*][?(@.name=='Doesnt')].inner.variant.discriminant" null
2022-09-03 13:36:28 -05:00
Doesnt,
// @is "$.index[*][?(@.name=='AlsoDoesnt')].inner.variant.discriminant" null
2022-09-03 13:36:28 -05:00
AlsoDoesnt,
// @is "$.index[*][?(@.name=='AlsoHas')].inner.variant.discriminant" '{"expr":"44", "value":"44"}'
2022-09-03 13:36:28 -05:00
AlsoHas = 44,
}