about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-09-29 17:04:40 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-10-09 20:26:06 +0200
commit6bea76f175f1a565320a1a93a174fb80567dda7c (patch)
tree61c17d0fc0f183d73156b71e76731d652face492 /src/test
parentbfdfc66f73b3e60ea2024ce090ae036b9f8200cf (diff)
downloadrust-6bea76f175f1a565320a1a93a174fb80567dda7c.tar.gz
rust-6bea76f175f1a565320a1a93a174fb80567dda7c.zip
Simplify included import items handling
Diffstat (limited to 'src/test')
-rw-r--r--src/test/rustdoc/reexport-check.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/rustdoc/reexport-check.rs b/src/test/rustdoc/reexport-check.rs
new file mode 100644
index 00000000000..9ecf1abbea9
--- /dev/null
+++ b/src/test/rustdoc/reexport-check.rs
@@ -0,0 +1,11 @@
+#![crate_name = "foo"]
+
+// @!has 'foo/index.html' '//code' 'pub use self::i32;'
+// @has 'foo/index.html' '//tr[@class="module-item"]' 'i32'
+// @has 'foo/i32/index.html'
+pub use std::i32;
+// @!has 'foo/index.html' '//code' 'pub use self::string::String;'
+// @has 'foo/index.html' '//tr[@class="module-item"]' 'String'
+pub use std::string::String;
+// @!has 'foo/index.html' '//code' 'pub use self::string::*;'
+pub use std::string::*;