summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-07 11:08:21 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-07 17:54:34 -0700
commit0f3183f42b02aee06e920dec18b0f4d1c93e6a77 (patch)
tree56ccbe0bb41163c2300892f8131f00ab0c9b40c1 /src/test/rustdoc
parentec412c2a94cec88f7c9d4bbdd793c3407c6871f7 (diff)
downloadrust-0f3183f42b02aee06e920dec18b0f4d1c93e6a77.tar.gz
rust-0f3183f42b02aee06e920dec18b0f4d1c93e6a77.zip
rustdoc: Don't duplicate inlined impl blocks
Closes #21474
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/issue-21474.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/rustdoc/issue-21474.rs b/src/test/rustdoc/issue-21474.rs
new file mode 100644
index 00000000000..36f160acf1c
--- /dev/null
+++ b/src/test/rustdoc/issue-21474.rs
@@ -0,0 +1,21 @@
+// Copyright 2012-2014 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.
+
+pub use inner::*;
+
+mod inner {
+    impl super::Blah for super::What { }
+}
+
+pub trait Blah { }
+
+// @count issue_21474/struct.What.html \
+//        '//*[@class="impl"]' 1
+pub struct What;