Skip to content

Commit eca3c55

Browse files
QuietMisdreavusManishearth
authored andcommitted
add ambiguity markers to the intra-links test
1 parent 4a20fb4 commit eca3c55

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/test/rustdoc/intra-links.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
// @has - '//a/@href' '../intra_links/constant.THIS_CONST.html'
1919
// @has - '//a/@href' '../intra_links/static.THIS_STATIC.html'
2020
// @has - '//a/@href' '../intra_links/macro.this_macro.html'
21+
// @has - '//a/@href' '../intra_links/trait.SoAmbiguous.html'
22+
// @has - '//a/@href' '../intra_links/fn.SoAmbiguous.html'
2123
//! In this crate we would like to link to:
2224
//!
2325
//! * [`ThisType`](ThisType)
@@ -29,6 +31,13 @@
2931
//! * [`THIS_CONST`](THIS_CONST)
3032
//! * [`THIS_STATIC`](THIS_STATIC)
3133
//! * [`this_macro`](this_macro!)
34+
//!
35+
//! In addition, there's some specifics we want to look at. There's [a trait called
36+
//! SoAmbiguous][ambig-trait], but there's also [a function called SoAmbiguous][ambig-fn] too!
37+
//! Whatever shall we do?
38+
//!
39+
//! [ambig-trait]: trait@SoAmbiguous
40+
//! [ambig-fn]: SoAmbiguous()
3241
3342
#[macro_export]
3443
macro_rules! this_macro {
@@ -44,3 +53,8 @@ pub union ThisUnion { this_field: usize, }
4453
pub fn this_function() {}
4554
pub const THIS_CONST: usize = 5usize;
4655
pub static THIS_STATIC: usize = 5usize;
56+
57+
pub trait SoAmbiguous {}
58+
59+
#[allow(bad_style)]
60+
pub fn SoAmbiguous() {}

0 commit comments

Comments
 (0)