2022-11-26 09:06:46 -06:00
|
|
|
#![feature(no_core)]
|
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
// @set AlwaysNone = "$.index[*][?(@.name == 'AlwaysNone')].id"
|
|
|
|
pub enum AlwaysNone {
|
|
|
|
// @set None = "$.index[*][?(@.name == 'None')].id"
|
|
|
|
None,
|
|
|
|
}
|
2023-05-22 12:17:52 -05:00
|
|
|
// @is "$.index[*][?(@.name == 'AlwaysNone')].inner.enum.variants[*]" $None
|
2022-11-26 09:06:46 -06:00
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @set use_None = "$.index[*][?(@.inner.import)].id"
|
|
|
|
// @is "$.index[*][?(@.inner.import)].inner.import.id" $None
|
2022-11-26 09:06:46 -06:00
|
|
|
pub use AlwaysNone::None;
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @ismany "$.index[*][?(@.name == 'use_variant')].inner.module.items[*]" $AlwaysNone $use_None
|