Skip to content

Instantly share code, notes, and snippets.

@SpaceManiac
Created August 22, 2015 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SpaceManiac/76559d551511258a9b42 to your computer and use it in GitHub Desktop.
Save SpaceManiac/76559d551511258a9b42 to your computer and use it in GitHub Desktop.
Demonstration of #[doc(inline)] not working as expected
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