1
Fork 0
rust/src/test/rustdoc-json/reexport/rename_private.rs

15 lines
398 B
Rust
Raw Normal View History

// edition:2018
#![no_core]
#![feature(no_core)]
2022-07-15 17:48:46 +02:00
// @is rename_private.json "$.index[*][?(@.name=='inner')].kind" \"module\"
// @is rename_private.json "$.index[*][?(@.name=='inner')].inner.is_stripped" "true"
mod inner {
2022-07-15 17:48:46 +02:00
// @has - "$.index[*][?(@.name=='Public')]"
pub struct Public;
}
2022-07-15 17:48:46 +02:00
// @is - "$.index[*][?(@.kind=='import')].inner.name" \"NewName\"
pub use inner::Public as NewName;