diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-08-23 22:47:17 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-08-24 11:38:58 +0200 |
| commit | 5d71280c64e92c8526b6933c591456377acd8dc7 (patch) | |
| tree | 45f2906070da2eb7c9ba0d02cdc15605f8e0953b /src/test/rustdoc | |
| parent | b4a32434c0cb859315a4395d003c625f87080e8f (diff) | |
| download | rust-5d71280c64e92c8526b6933c591456377acd8dc7.tar.gz rust-5d71280c64e92c8526b6933c591456377acd8dc7.zip | |
Add duplicate test
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/remove-duplicates.rs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/rustdoc/remove-duplicates.rs b/src/test/rustdoc/remove-duplicates.rs new file mode 100644 index 00000000000..6c4f6d0700a --- /dev/null +++ b/src/test/rustdoc/remove-duplicates.rs @@ -0,0 +1,24 @@ +// Copyright 2016 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. + +#![crate_name = "foo"] + +mod foo { + pub use bar::*; + pub mod bar { + pub trait Foo { + fn foo(); + } + } +} + +// @count foo/index.html '//*[@class="trait"]' 1 +pub use foo::bar::*; +pub use foo::*; |
