/src/test/rustdoc/inline_local/glob-private.rs

https://gitlab.com/rust-lang/rust · Rust · 42 lines · 11 code · 6 blank · 25 comment · 0 complexity · f9390ab3622752dc7945d43b96ff5ba3 MD5 · raw file

  1. #![crate_name = "foo"]
  2. mod mod1 {
  3. mod mod2 {
  4. pub struct Mod2Public;
  5. struct Mod2Private;
  6. }
  7. pub use self::mod2::*;
  8. pub struct Mod1Public;
  9. struct Mod1Private;
  10. }
  11. pub use mod1::*;
  12. // @has foo/index.html
  13. // @!has - "mod1"
  14. // @has - "Mod1Public"
  15. // @!has - "Mod1Private"
  16. // @!has - "mod2"
  17. // @has - "Mod2Public"
  18. // @!has - "Mod2Private"
  19. // @has foo/struct.Mod1Public.html
  20. // @!has foo/struct.Mod1Private.html
  21. // @has foo/struct.Mod2Public.html
  22. // @!has foo/struct.Mod2Private.html
  23. // @has-dir foo/mod1
  24. // @!has foo/mod1/index.html
  25. // @has foo/mod1/struct.Mod1Public.html
  26. // @!has foo/mod1/struct.Mod1Private.html
  27. // @!has foo/mod1/struct.Mod2Public.html
  28. // @!has foo/mod1/struct.Mod2Private.html
  29. // @has-dir foo/mod1/mod2
  30. // @!has foo/mod1/mod2/index.html
  31. // @has foo/mod1/mod2/struct.Mod2Public.html
  32. // @!has foo/mod1/mod2/struct.Mod2Private.html
  33. // @!has-dir foo/mod2
  34. // @!has foo/mod2/index.html
  35. // @!has foo/mod2/struct.Mod2Public.html
  36. // @!has foo/mod2/struct.Mod2Private.html