diff options
| author | bors <bors@rust-lang.org> | 2017-06-13 08:54:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-06-13 08:54:23 +0000 |
| commit | 9adf969cd8f7657a31a260e8b736d212a4d2ab53 (patch) | |
| tree | 9b607a238bc2467ece00eabf63ca36e71fd2c6a6 /src/test/rustdoc | |
| parent | e7fffa2211f3145e444c2d90321a0e39d6150b42 (diff) | |
| parent | 68ccba81aea7f4ae86c97d88a6d7a3ea3f758f7e (diff) | |
| download | rust-9adf969cd8f7657a31a260e8b736d212a4d2ab53.tar.gz rust-9adf969cd8f7657a31a260e8b736d212a4d2ab53.zip | |
Auto merge of #42608 - ollie27:rustdoc_variant_reexport, r=QuietMisdreavus
rustdoc: Fix missing enum variant reexports Fixes #35488
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/issue-35488.rs | 23 |
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; |
