mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Add regression test for json reexport bug
This commit is contained in:
parent
77e729ea92
commit
5adca7305e
@ -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 {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user