summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc/intra-doc/macros-disambiguators.rs
blob: cd4caa6a89416a7b1521eaef0528b21c9816fb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#![crate_name = "foo"]
#![deny(rustdoc::broken_intra_doc_links)]

//! [foo!()]
// @has foo/index.html '//a[@href="macro.foo.html"]' 'foo!()'

//! [foo!{}]
// @has - '//a[@href="macro.foo.html"]' 'foo!{}'

//! [foo![]](foo![])
// @has - '//a[@href="macro.foo.html"]' 'foo![]'

//! [foo1](foo!())
// @has - '//a[@href="macro.foo.html"]' 'foo1'

//! [foo2](foo!{})
// @has - '//a[@href="macro.foo.html"]' 'foo2'

//! [foo3](foo![])
// @has - '//a[@href="macro.foo.html"]' 'foo3'

#[macro_export]
macro_rules! foo {
    () => {};
}