/src/test/rustdoc/inline_cross/renamed-via-module.rs

https://gitlab.com/jianglu/rust · Rust · 34 lines · 3 code · 5 blank · 26 comment · 0 complexity · 0af5abd74e787c93e02661f453c4de6b MD5 · raw file

  1. // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
  2. // file at the top-level directory of this distribution and at
  3. // http://rust-lang.org/COPYRIGHT.
  4. //
  5. // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
  6. // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
  7. // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
  8. // option. This file may not be copied, modified, or distributed
  9. // except according to those terms.
  10. // aux-build:renamed-via-module.rs
  11. // build-aux-docs
  12. // ignore-cross-compile
  13. #![crate_name = "bar"]
  14. extern crate foo;
  15. // @has foo/iter/index.html
  16. // @has - '//a/[@href="struct.DeprecatedStepBy.html"]' "DeprecatedStepBy"
  17. // @has - '//a/[@href="struct.StepBy.html"]' "StepBy"
  18. // @has foo/iter/struct.DeprecatedStepBy.html
  19. // @has - '//h1' "Struct foo::iter::DeprecatedStepBy"
  20. // @has foo/iter/struct.StepBy.html
  21. // @has - '//h1' "Struct foo::iter::StepBy"
  22. // @has bar/iter/index.html
  23. // @has - '//a/[@href="struct.DeprecatedStepBy.html"]' "DeprecatedStepBy"
  24. // @has - '//a/[@href="struct.StepBy.html"]' "StepBy"
  25. // @has bar/iter/struct.DeprecatedStepBy.html
  26. // @has - '//h1' "Struct bar::iter::DeprecatedStepBy"
  27. // @has bar/iter/struct.StepBy.html
  28. // @has - '//h1' "Struct bar::iter::StepBy"
  29. pub use foo::iter;