Created
August 22, 2015 22:31
-
-
Save SpaceManiac/76559d551511258a9b42 to your computer and use it in GitHub Desktop.
Demonstration of #[doc(inline)] not working as expected
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
mod ffi { | |
mod inner { | |
/// A Docs | |
pub type A = i32; | |
} | |
/// A Use Docs | |
#[doc(inline)] | |
pub use self::inner::A; | |
} | |
mod wrap { | |
pub mod inner { | |
/// C Docs | |
#[doc(inline)] | |
pub use ffi::A as C; | |
/// D Docs | |
pub type D = ::ffi::A; | |
} | |
} | |
/// Use C Docs | |
#[doc(inline)] | |
pub use wrap::inner::C; | |
/// Use D Docs | |
#[doc(inline)] | |
pub use wrap::inner::D as E; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment