From eca3c558817ad6f2be485515d0131c6bbd80340e Mon Sep 17 00:00:00 2001 From: QuietMisdreavus Date: Mon, 8 Jan 2018 09:33:27 -0600 Subject: [PATCH] add ambiguity markers to the intra-links test --- src/test/rustdoc/intra-links.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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() {} -- 2.44.0