2022-11-26 09:06:46 -06:00
|
|
|
// Regression test for <https://github.com/rust-lang/rust/issues/104942>
|
|
|
|
|
|
|
|
#![feature(no_core)]
|
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
// @set Color = "$.index[*][?(@.name == 'Color')].id"
|
|
|
|
pub enum Color {
|
|
|
|
Red,
|
|
|
|
Green,
|
|
|
|
Blue,
|
|
|
|
}
|
|
|
|
|
2023-05-22 12:17:52 -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::*;
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @ismany "$.index[*][?(@.name == 'use_glob')].inner.module.items[*]" $Color $use_Color
|