about summary refs log tree commit diff
path: root/src/test/rustdoc/issue-35488.rs
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2017-06-12 19:00:09 +0100
committerOliver Middleton <olliemail27@gmail.com>2017-06-12 22:42:20 +0100
commit68ccba81aea7f4ae86c97d88a6d7a3ea3f758f7e (patch)
tree1d0cb95fe02d4e5426ffb08443762cf28bacd787 /src/test/rustdoc/issue-35488.rs
parent19193d6390644b5d621934bac6a33caacfb9ad31 (diff)
downloadrust-68ccba81aea7f4ae86c97d88a6d7a3ea3f758f7e.tar.gz
rust-68ccba81aea7f4ae86c97d88a6d7a3ea3f758f7e.zip
rustdoc: Fix missing enum variant reexports
Diffstat (limited to 'src/test/rustdoc/issue-35488.rs')
-rw-r--r--src/test/rustdoc/issue-35488.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-35488.rs b/src/test/rustdoc/issue-35488.rs
new file mode 100644
index 00000000000..f24166a65f0
--- /dev/null
+++ b/src/test/rustdoc/issue-35488.rs
@@ -0,0 +1,23 @@
+// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+mod foo {
+    pub enum Foo {
+        Bar,
+    }
+    pub use self::Foo::*;
+}
+
+// @has 'issue_35488/index.html' '//code' 'pub use self::Foo::*;'
+// @has 'issue_35488/enum.Foo.html'
+pub use self::foo::*;
+
+// @has 'issue_35488/index.html' '//code' 'pub use std::option::Option::None;'
+pub use std::option::Option::None;