summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-json/enums/use_glob.rs
blob: 49990ec53315fe9f496a2d4b404436f1f19efa17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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,
}

// @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