about summary refs log tree commit diff
path: root/tests/rustdoc-ui/disambiguator-endswith-named-suffix.rs
blob: cb277d529ce7736d18800c3192fb165700b26d6c (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
//@ check-pass
//@ normalize-stderr: "nightly|beta|1\.[0-9][0-9]\.[0-9]" -> "$$CHANNEL"

//! [struct@m!()]   //~ WARN: unmatched disambiguator `struct` and suffix `!()`
//! [struct@m!{}]   //~ WARN: unmatched disambiguator `struct` and suffix `!{}`
//! [struct@m![]]
//! [struct@f()]    //~ WARN: unmatched disambiguator `struct` and suffix `()`
//! [struct@m!]     //~ WARN: unmatched disambiguator `struct` and suffix `!`
//!
//! [enum@m!()]     //~ WARN: unmatched disambiguator `enum` and suffix `!()`
//! [enum@m!{}]     //~ WARN: unmatched disambiguator `enum` and suffix `!{}`
//! [enum@m![]]
//! [enum@f()]      //~ WARN: unmatched disambiguator `enum` and suffix `()`
//! [enum@m!]       //~ WARN: unmatched disambiguator `enum` and suffix `!`
//!
//! [trait@m!()]    //~ WARN: unmatched disambiguator `trait` and suffix `!()`
//! [trait@m!{}]    //~ WARN: unmatched disambiguator `trait` and suffix `!{}`
//! [trait@m![]]
//! [trait@f()]     //~ WARN: unmatched disambiguator `trait` and suffix `()`
//! [trait@m!]      //~ WARN: unmatched disambiguator `trait` and suffix `!`
//!
//! [module@m!()]   //~ WARN: unmatched disambiguator `module` and suffix `!()`
//! [module@m!{}]   //~ WARN: unmatched disambiguator `module` and suffix `!{}`
//! [module@m![]]
//! [module@f()]    //~ WARN: unmatched disambiguator `module` and suffix `()`
//! [module@m!]     //~ WARN: unmatched disambiguator `module` and suffix `!`
//!
//! [mod@m!()]      //~ WARN: unmatched disambiguator `mod` and suffix `!()`
//! [mod@m!{}]      //~ WARN: unmatched disambiguator `mod` and suffix `!{}`
//! [mod@m![]]
//! [mod@f()]       //~ WARN: unmatched disambiguator `mod` and suffix `()`
//! [mod@m!]        //~ WARN: unmatched disambiguator `mod` and suffix `!`
//!
//! [const@m!()]    //~ WARN: unmatched disambiguator `const` and suffix `!()`
//! [const@m!{}]    //~ WARN: unmatched disambiguator `const` and suffix `!{}`
//! [const@m![]]
//! [const@f()]     //~ WARN: incompatible link kind for `f`
//! [const@m!]      //~ WARN: unmatched disambiguator `const` and suffix `!`
//!
//! [constant@m!()]   //~ WARN: unmatched disambiguator `constant` and suffix `!()`
//! [constant@m!{}]   //~ WARN:  unmatched disambiguator `constant` and suffix `!{}`
//! [constant@m![]]
//! [constant@f()]    //~ WARN: incompatible link kind for `f`
//! [constant@m!]     //~ WARN: unmatched disambiguator `constant` and suffix `!`
//!
//! [static@m!()]   //~ WARN: unmatched disambiguator `static` and suffix `!()`
//! [static@m!{}]   //~ WARN: unmatched disambiguator `static` and suffix `!{}`
//! [static@m![]]
//! [static@f()]    //~ WARN: incompatible link kind for `f`
//! [static@m!]     //~ WARN: unmatched disambiguator `static` and suffix `!`
//!
//! [function@m!()]   //~ WARN: unmatched disambiguator `function` and suffix `!()`
//! [function@m!{}]   //~ WARN: unmatched disambiguator `function` and suffix `!{}`
//! [function@m![]]
//! [function@f()]
//! [function@m!]     //~ WARN: unmatched disambiguator `function` and suffix `!`
//!
//! [fn@m!()]   //~ WARN: unmatched disambiguator `fn` and suffix `!()`
//! [fn@m!{}]   //~ WARN: unmatched disambiguator `fn` and suffix `!{}`
//! [fn@m![]]
//! [fn@f()]
//! [fn@m!]     //~ WARN: unmatched disambiguator `fn` and suffix `!`
//!
//! [method@m!()]   //~ WARN: unmatched disambiguator `method` and suffix `!()`
//! [method@m!{}]   //~ WARN: unmatched disambiguator `method` and suffix `!{}`
//! [method@m![]]
//! [method@f()]
//! [method@m!]     //~ WARN: unmatched disambiguator `method` and suffix `!`
//!
//! [derive@m!()]   //~ WARN: incompatible link kind for `m`
//! [derive@m!{}]   //~ WARN: incompatible link kind for `m`
//! [derive@m![]]
//! [derive@f()]    //~ WARN: unmatched disambiguator `derive` and suffix `()`
//! [derive@m!]     //~ WARN: incompatible link kind for `m`
//!
//! [type@m!()]   //~ WARN: unmatched disambiguator `type` and suffix `!()`
//! [type@m!{}]   //~ WARN: unmatched disambiguator `type` and suffix `!{}`
//! [type@m![]]
//! [type@f()]    //~ WARN: unmatched disambiguator `type` and suffix `()`
//! [type@m!]     //~ WARN: unmatched disambiguator `type` and suffix `!`
//!
//! [value@m!()]   //~ WARN: unmatched disambiguator `value` and suffix `!()`
//! [value@m!{}]   //~ WARN: unmatched disambiguator `value` and suffix `!{}`
//! [value@m![]]
//! [value@f()]
//! [value@m!]     //~ WARN: unmatched disambiguator `value` and suffix `!`
//!
//! [macro@m!()]
//! [macro@m!{}]
//! [macro@m![]]
//! [macro@f()]    //~ WARN: unmatched disambiguator `macro` and suffix `()`
//! [macro@m!]
//!
//! [prim@m!()]   //~ WARN: unmatched disambiguator `prim` and suffix `!()`
//! [prim@m!{}]   //~ WARN: unmatched disambiguator `prim` and suffix `!{}`
//! [prim@m![]]
//! [prim@f()]    //~ WARN: unmatched disambiguator `prim` and suffix `()`
//! [prim@m!]     //~ WARN: unmatched disambiguator `prim` and suffix `!`
//!
//! [primitive@m!()]   //~ WARN: unmatched disambiguator `primitive` and suffix `!()`
//! [primitive@m!{}]   //~ WARN: unmatched disambiguator `primitive` and suffix `!{}`
//! [primitive@m![]]
//! [primitive@f()]    //~ WARN: unmatched disambiguator `primitive` and suffix `()`
//! [primitive@m!]     //~ WARN: unmatched disambiguator `primitive` and suffix `!`

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

pub fn f() {}