2022-11-26 09:06:46 -06:00
|
|
|
// Regression test for <https://github.com/rust-lang/rust/issues/104942>
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ set Color = "$.index[*][?(@.name == 'Color')].id"
|
2022-11-26 09:06:46 -06:00
|
|
|
pub enum Color {
|
|
|
|
Red,
|
|
|
|
Green,
|
|
|
|
Blue,
|
|
|
|
}
|
|
|
|
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ set use_Color = "$.index[*][?(@.inner.use)].id"
|
|
|
|
//@ is "$.index[*][?(@.inner.use)].inner.use.id" $Color
|
|
|
|
//@ is "$.index[*][?(@.inner.use)].inner.use.is_glob" true
|
2022-11-26 09:06:46 -06:00
|
|
|
pub use Color::*;
|
|
|
|
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ ismany "$.index[*][?(@.name == 'use_glob')].inner.module.items[*]" $Color $use_Color
|