about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2018-08-16 15:14:11 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2018-08-16 15:14:11 +0200
commit985da801b07ec997e3eb6d735a0dfd041728623e (patch)
tree473d38651d27ff22b5aad9217d02a896f15dceb7 /src/test/rustdoc
parentafd0a2f2499ff66e74236c5b06d3ab9ab87dd3d3 (diff)
downloadrust-985da801b07ec997e3eb6d735a0dfd041728623e.tar.gz
rust-985da801b07ec997e3eb6d735a0dfd041728623e.zip
Generate blanket implementations for reexported items as well
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/blanket-reexport-item.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/rustdoc/blanket-reexport-item.rs b/src/test/rustdoc/blanket-reexport-item.rs
new file mode 100644
index 00000000000..355bfa0f2f2
--- /dev/null
+++ b/src/test/rustdoc/blanket-reexport-item.rs
@@ -0,0 +1,18 @@
+// Copyright 2018 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"]
+
+// @has foo/struct.S.html '//h3[@id="impl-Into"]//code' 'impl<T, U> Into for T'
+pub struct S2 {}
+mod m {
+    pub struct S {}
+}
+pub use m::*;