Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
18
tests/rustdoc-json/enums/use_glob.rs
Normal file
18
tests/rustdoc-json/enums/use_glob.rs
Normal file
|
@ -0,0 +1,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[*][?(@.kind == 'import')].id"
|
||||
// @is "$.index[*][?(@.kind == 'import')].inner.id" $Color
|
||||
// @is "$.index[*][?(@.kind == 'import')].inner.glob" true
|
||||
pub use Color::*;
|
||||
|
||||
// @ismany "$.index[*][?(@.name == 'use_glob')].inner.items[*]" $Color $use_Color
|
Loading…
Add table
Add a link
Reference in a new issue