0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-25 12:12:19 +01:00
rust/tests/rustdoc-json/enums/discriminant/only_some_have_discriminant.rs
2024-07-19 16:54:42 +02:00

13 lines
461 B
Rust

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