about summary refs log tree commit diff
path: root/src/test/rustdoc
diff options
context:
space:
mode:
authorQuietMisdreavus <grey@quietmisdreavus.net>2018-01-08 09:33:27 -0600
committerManish Goregaokar <manishsmail@gmail.com>2018-01-22 15:24:30 +0530
commiteca3c558817ad6f2be485515d0131c6bbd80340e (patch)
treef6b02af8a436b783375c0607d6892af0ae6d8b94 /src/test/rustdoc
parent4a20fb44c807f57070841618121ccc601bfffae8 (diff)
downloadrust-eca3c558817ad6f2be485515d0131c6bbd80340e.tar.gz
rust-eca3c558817ad6f2be485515d0131c6bbd80340e.zip
add ambiguity markers to the intra-links test
Diffstat (limited to 'src/test/rustdoc')
-rw-r--r--src/test/rustdoc/intra-links.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/rustdoc/intra-links.rs b/src/test/rustdoc/intra-links.rs
index 5039d7f30cb..cc9d288ba91 100644
--- a/src/test/rustdoc/intra-links.rs
+++ b/src/test/rustdoc/intra-links.rs
@@ -18,6 +18,8 @@
 // @has - '//a/@href' '../intra_links/constant.THIS_CONST.html'
 // @has - '//a/@href' '../intra_links/static.THIS_STATIC.html'
 // @has - '//a/@href' '../intra_links/macro.this_macro.html'
+// @has - '//a/@href' '../intra_links/trait.SoAmbiguous.html'
+// @has - '//a/@href' '../intra_links/fn.SoAmbiguous.html'
 //! In this crate we would like to link to:
 //!
 //! * [`ThisType`](ThisType)
@@ -29,6 +31,13 @@
 //! * [`THIS_CONST`](THIS_CONST)
 //! * [`THIS_STATIC`](THIS_STATIC)
 //! * [`this_macro`](this_macro!)
+//!
+//! In addition, there's some specifics we want to look at. There's [a trait called
+//! SoAmbiguous][ambig-trait], but there's also [a function called SoAmbiguous][ambig-fn] too!
+//! Whatever shall we do?
+//!
+//! [ambig-trait]: trait@SoAmbiguous
+//! [ambig-fn]: SoAmbiguous()
 
 #[macro_export]
 macro_rules! this_macro {
@@ -44,3 +53,8 @@ pub union ThisUnion { this_field: usize, }
 pub fn this_function() {}
 pub const THIS_CONST: usize = 5usize;
 pub static THIS_STATIC: usize = 5usize;
+
+pub trait SoAmbiguous {}
+
+#[allow(bad_style)]
+pub fn SoAmbiguous() {}