Skip to content

Commit 069ae16

Browse files
Add regression test for json reexport bug
1 parent 410ffe3 commit 069ae16

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Regression test for https://github.com/rust-lang/rust/issues/97432.
2+
3+
#![feature(no_core)]
4+
#![no_std]
5+
#![no_core]
6+
7+
// @has same_type_reexported_more_than_once.json
8+
// @set trait_id = - "$.index[*][?(@.name=='Trait')].id"
9+
// @has - "$.index[*][?(@.name=='same_type_reexported_more_than_once')].inner.items[*]" $trait_id
10+
pub use inner::Trait;
11+
// @set reexport_id = - "$.index[*][?(@.name=='Reexport')].id"
12+
// @has - "$.index[*][?(@.name=='same_type_reexported_more_than_once')].inner.items[*]" $reexport_id
13+
pub use inner::Trait as Reexport;
14+
15+
mod inner {
16+
pub trait Trait {}
17+
}

0 commit comments

Comments
 (0)