rust/tests/rustdoc-json/enums/use_variant.rs
2024-07-19 16:54:42 +02:00

13 lines
469 B
Rust

//@ set AlwaysNone = "$.index[*][?(@.name == 'AlwaysNone')].id"
pub enum AlwaysNone {
//@ set None = "$.index[*][?(@.name == 'None')].id"
None,
}
//@ is "$.index[*][?(@.name == 'AlwaysNone')].inner.enum.variants[*]" $None
//@ set use_None = "$.index[*][?(@.inner.import)].id"
//@ is "$.index[*][?(@.inner.import)].inner.import.id" $None
pub use AlwaysNone::None;
//@ ismany "$.index[*][?(@.name == 'use_variant')].inner.module.items[*]" $AlwaysNone $use_None