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.

11 lines
402 B
Rust
Raw Normal View History

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