]> git.lizzy.rs Git - rust.git/commitdiff
add ambiguity markers to the intra-links test
authorQuietMisdreavus <grey@quietmisdreavus.net>
Mon, 8 Jan 2018 15:33:27 +0000 (09:33 -0600)
committerManish Goregaokar <manishsmail@gmail.com>
Mon, 22 Jan 2018 09:54:30 +0000 (15:24 +0530)
src/test/rustdoc/intra-links.rs

index 5039d7f30cb6ec6495564b3308c64abe14882cae..cc9d288ba91418b2ec566bc4cc7a3ea11805a859 100644 (file)
@@ -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)
 //! * [`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() {}