]> git.lizzy.rs Git - rust.git/commitdiff
Add test
authorHannah McLaughlin <h@mcla.ug>
Wed, 18 Nov 2020 22:14:58 +0000 (22:14 +0000)
committerHannah McLaughlin <h@mcla.ug>
Wed, 18 Nov 2020 22:14:58 +0000 (22:14 +0000)
src/test/rustdoc/intra-link-extern-type.rs [new file with mode: 0644]

diff --git a/src/test/rustdoc/intra-link-extern-type.rs b/src/test/rustdoc/intra-link-extern-type.rs
new file mode 100644 (file)
index 0000000..418e0d9
--- /dev/null
@@ -0,0 +1,18 @@
+#![feature(extern_types)]
+
+extern {
+    pub type ExternType;
+}
+
+impl ExternType {
+    pub fn f(&self) {
+
+    }
+}
+
+// @has 'intra_link_extern_type/foreigntype.ExternType.html'
+// @has 'intra_link_extern_type/fn.links_to_extern_type.html' \
+// 'href="../intra_link_extern_type/foreigntype.ExternType.html#method.f"'
+/// See also [ExternType::f]
+pub fn links_to_extern_type() {
+}