rust/tests/rustdoc-json/reexport/rename_public.rs

18 lines
597 B
Rust
Raw Normal View History

2021-02-26 16:55:08 -06:00
// edition:2018
#![no_core]
#![feature(no_core)]
2022-08-17 05:55:09 -05:00
// @set inner_id = "$.index[*][?(@.name=='inner')].id"
2021-02-26 16:55:08 -06:00
pub mod inner {
2022-08-17 05:55:09 -05:00
// @set public_id = "$.index[*][?(@.name=='Public')].id"
// @ismany "$.index[*][?(@.name=='inner')].inner.items[*]" $public_id
2021-02-26 16:55:08 -06:00
pub struct Public;
}
2022-08-17 05:55:09 -05:00
// @set import_id = "$.index[*][?(@.inner.name=='NewName')].id"
// @!has "$.index[*][?(@.inner.name=='Public')]"
// @is "$.index[*][?(@.inner.name=='NewName')].inner.source" \"inner::Public\"
2021-02-26 16:55:08 -06:00
pub use inner::Public as NewName;
2022-07-19 10:57:38 -05:00
2022-08-17 05:55:09 -05:00
// @ismany "$.index[*][?(@.name=='rename_public')].inner.items[*]" $inner_id $import_id