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

14 lines
275 B
Rust
Raw Normal View History

// edition:2018
#![no_core]
#![feature(no_core)]
2022-07-15 10:48:46 -05:00
// @!has "$.index[*][?(@.kind=='inner')]"
mod inner {
2022-08-17 05:55:09 -05:00
// @has "$.index[*][?(@.name=='Public')]"
pub struct Public;
}
2022-08-17 05:55:09 -05:00
// @is "$.index[*][?(@.kind=='import')].inner.name" \"NewName\"
pub use inner::Public as NewName;