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