-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for json reexport bug
- Loading branch information
1 parent
410ffe3
commit 069ae16
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/test/rustdoc-json/reexport/same_type_reexported_more_than_once.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Regression test for https://github.com/rust-lang/rust/issues/97432. | ||
|
||
#![feature(no_core)] | ||
#![no_std] | ||
#![no_core] | ||
|
||
// @has same_type_reexported_more_than_once.json | ||
// @set trait_id = - "$.index[*][?(@.name=='Trait')].id" | ||
// @has - "$.index[*][?(@.name=='same_type_reexported_more_than_once')].inner.items[*]" $trait_id | ||
pub use inner::Trait; | ||
// @set reexport_id = - "$.index[*][?(@.name=='Reexport')].id" | ||
// @has - "$.index[*][?(@.name=='same_type_reexported_more_than_once')].inner.items[*]" $reexport_id | ||
pub use inner::Trait as Reexport; | ||
|
||
mod inner { | ||
pub trait Trait {} | ||
} |