]> git.lizzy.rs Git - rust.git/commitdiff
Added a test.
authorTor Hovland <tor.hovland@bekk.no>
Thu, 8 Apr 2021 21:03:39 +0000 (23:03 +0200)
committerTor Hovland <tor.hovland@bekk.no>
Sun, 18 Apr 2021 08:45:52 +0000 (10:45 +0200)
src/test/rustdoc/issue-83832.rs [new file with mode: 0644]

diff --git a/src/test/rustdoc/issue-83832.rs b/src/test/rustdoc/issue-83832.rs
new file mode 100644 (file)
index 0000000..93dff7c
--- /dev/null
@@ -0,0 +1,21 @@
+#![crate_name = "foo"]
+
+pub mod io {
+    #[deprecated(since = "0.1.8", note = "Use bar() instead")]
+    pub trait Reader {}
+    pub trait Writer {}
+}
+
+// @has foo/mod1/index.html
+pub mod mod1 {
+    // @has - '//code' 'pub use io::Reader;'
+    // @has - '//span' 'Deprecated'
+    pub use io::Reader;
+}
+
+// @has foo/mod2/index.html
+pub mod mod2 {
+    // @has - '//code' 'pub use io::Writer;'
+    // @!has - '//span' 'Deprecated'
+    pub use io::Writer;
+}