From 32cd4bc790ae8a4b0d7105e2a70de90616a5a621 Mon Sep 17 00:00:00 2001 From: Hannah McLaughlin Date: Wed, 18 Nov 2020 22:14:58 +0000 Subject: [PATCH] Add test --- src/test/rustdoc/intra-link-extern-type.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/test/rustdoc/intra-link-extern-type.rs diff --git a/src/test/rustdoc/intra-link-extern-type.rs b/src/test/rustdoc/intra-link-extern-type.rs new file mode 100644 index 00000000000..418e0d91ea7 --- /dev/null +++ b/src/test/rustdoc/intra-link-extern-type.rs @@ -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() { +}