blob: bec89530b05243d290a4dfd42a9d3d38c6f1c2a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// 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.import)].id"
// @is "$.index[*][?(@.inner.import)].inner.import.id" $Color
// @is "$.index[*][?(@.inner.import)].inner.import.glob" true
pub use Color::*;
// @ismany "$.index[*][?(@.name == 'use_glob')].inner.module.items[*]" $Color $use_Color
|