mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
16 lines
453 B
Rust
16 lines
453 B
Rust
// Regression test for <https://github.com/rust-lang/rust/issues/104942>
|
|
|
|
//@ set Color = "$.index[*][?(@.name == 'Color')].id"
|
|
pub enum Color {
|
|
Red,
|
|
Green,
|
|
Blue,
|
|
}
|
|
|
|
//@ set use_Color = "$.index[*][?(@.inner.use)].id"
|
|
//@ is "$.index[*][?(@.inner.use)].inner.use.id" $Color
|
|
//@ is "$.index[*][?(@.inner.use)].inner.use.is_glob" true
|
|
pub use Color::*;
|
|
|
|
//@ ismany "$.index[*][?(@.name == 'use_glob')].inner.module.items[*]" $Color $use_Color
|