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-07-19 09:50:47 -05:00
|
|
|
//@ set use_Color = "$.index[*][?(@.inner.import)].id"
|
|
|
|
//@ is "$.index[*][?(@.inner.import)].inner.import.id" $Color
|
|
|
|
//@ is "$.index[*][?(@.inner.import)].inner.import.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
|