|
| 1 | +//@ check-pass |
| 2 | +//@ normalize-stderr-test: "nightly|beta|1\.[0-9][0-9]\.[0-9]" -> "$$CHANNEL" |
| 3 | + |
| 4 | +//! [struct@m!()] //~ WARN: unmatched disambiguator `struct` and suffix `!()` |
| 5 | +//! [struct@m!{}] |
| 6 | +//! [struct@m![]] |
| 7 | +//! [struct@f()] //~ WARN: unmatched disambiguator `struct` and suffix `()` |
| 8 | +//! [struct@m!] //~ WARN: unmatched disambiguator `struct` and suffix `!` |
| 9 | +//! |
| 10 | +//! [enum@m!()] //~ WARN: unmatched disambiguator `enum` and suffix `!()` |
| 11 | +//! [enum@m!{}] |
| 12 | +//! [enum@m![]] |
| 13 | +//! [enum@f()] //~ WARN: unmatched disambiguator `enum` and suffix `()` |
| 14 | +//! [enum@m!] //~ WARN: unmatched disambiguator `enum` and suffix `!` |
| 15 | +//! |
| 16 | +//! [trait@m!()] //~ WARN: unmatched disambiguator `trait` and suffix `!()` |
| 17 | +//! [trait@m!{}] |
| 18 | +//! [trait@m![]] |
| 19 | +//! [trait@f()] //~ WARN: unmatched disambiguator `trait` and suffix `()` |
| 20 | +//! [trait@m!] //~ WARN: unmatched disambiguator `trait` and suffix `!` |
| 21 | +//! |
| 22 | +//! [module@m!()] //~ WARN: unmatched disambiguator `module` and suffix `!()` |
| 23 | +//! [module@m!{}] |
| 24 | +//! [module@m![]] |
| 25 | +//! [module@f()] //~ WARN: unmatched disambiguator `module` and suffix `()` |
| 26 | +//! [module@m!] //~ WARN: unmatched disambiguator `module` and suffix `!` |
| 27 | +//! |
| 28 | +//! [mod@m!()] //~ WARN: unmatched disambiguator `mod` and suffix `!()` |
| 29 | +//! [mod@m!{}] |
| 30 | +//! [mod@m![]] |
| 31 | +//! [mod@f()] //~ WARN: unmatched disambiguator `mod` and suffix `()` |
| 32 | +//! [mod@m!] //~ WARN: unmatched disambiguator `mod` and suffix `!` |
| 33 | +//! |
| 34 | +//! [const@m!()] //~ WARN: unmatched disambiguator `const` and suffix `!()` |
| 35 | +//! [const@m!{}] |
| 36 | +//! [const@m![]] |
| 37 | +//! [const@f()] //~ WARN: incompatible link kind for `f` |
| 38 | +//! [const@m!] //~ WARN: unmatched disambiguator `const` and suffix `!` |
| 39 | +//! |
| 40 | +//! [constant@m!()] //~ WARN: unmatched disambiguator `constant` and suffix `!()` |
| 41 | +//! [constant@m!{}] |
| 42 | +//! [constant@m![]] |
| 43 | +//! [constant@f()] //~ WARN: incompatible link kind for `f` |
| 44 | +//! [constant@m!] //~ WARN: unmatched disambiguator `constant` and suffix `!` |
| 45 | +//! |
| 46 | +//! [static@m!()] //~ WARN: unmatched disambiguator `static` and suffix `!()` |
| 47 | +//! [static@m!{}] |
| 48 | +//! [static@m![]] |
| 49 | +//! [static@f()] //~ WARN: incompatible link kind for `f` |
| 50 | +//! [static@m!] //~ WARN: unmatched disambiguator `static` and suffix `!` |
| 51 | +//! |
| 52 | +//! [function@m!()] //~ WARN: unmatched disambiguator `function` and suffix `!()` |
| 53 | +//! [function@m!{}] |
| 54 | +//! [function@m![]] |
| 55 | +//! [function@f()] |
| 56 | +//! [function@m!] //~ WARN: unmatched disambiguator `function` and suffix `!` |
| 57 | +//! |
| 58 | +//! [fn@m!()] //~ WARN: unmatched disambiguator `fn` and suffix `!()` |
| 59 | +//! [fn@m!{}] |
| 60 | +//! [fn@m![]] |
| 61 | +//! [fn@f()] |
| 62 | +//! [fn@m!] //~ WARN: unmatched disambiguator `fn` and suffix `!` |
| 63 | +//! |
| 64 | +//! [method@m!()] //~ WARN: unmatched disambiguator `method` and suffix `!()` |
| 65 | +//! [method@m!{}] |
| 66 | +//! [method@m![]] |
| 67 | +//! [method@f()] |
| 68 | +//! [method@m!] //~ WARN: unmatched disambiguator `method` and suffix `!` |
| 69 | +//! |
| 70 | +//! [derive@m!()] //~ WARN: incompatible link kind for `m` |
| 71 | +//! [derive@m!{}] //~ WARN: incompatible link kind for `m` |
| 72 | +//! [derive@m![]] |
| 73 | +//! [derive@f()] //~ WARN: unmatched disambiguator `derive` and suffix `()` |
| 74 | +//! [derive@m!] //~ WARN: incompatible link kind for `m` |
| 75 | +//! |
| 76 | +//! [type@m!()] //~ WARN: unmatched disambiguator `type` and suffix `!()` |
| 77 | +//! [type@m!{}] |
| 78 | +//! [type@m![]] |
| 79 | +//! [type@f()] //~ WARN: unmatched disambiguator `type` and suffix `()` |
| 80 | +//! [type@m!] //~ WARN: unmatched disambiguator `type` and suffix `!` |
| 81 | +//! |
| 82 | +//! [value@m!()] //~ WARN: unmatched disambiguator `value` and suffix `!()` |
| 83 | +//! [value@m!{}] |
| 84 | +//! [value@m![]] |
| 85 | +//! [value@f()] |
| 86 | +//! [value@m!] //~ WARN: unmatched disambiguator `value` and suffix `!` |
| 87 | +//! |
| 88 | +//! [macro@m!()] |
| 89 | +//! [macro@m!{}] |
| 90 | +//! [macro@m![]] |
| 91 | +//! [macro@f()] //~ WARN: unmatched disambiguator `macro` and suffix `()` |
| 92 | +//! [macro@m!] |
| 93 | +//! |
| 94 | +//! [prim@m!()] //~ WARN: unmatched disambiguator `prim` and suffix `!()` |
| 95 | +//! [prim@m!{}] |
| 96 | +//! [prim@m![]] |
| 97 | +//! [prim@f()] //~ WARN: unmatched disambiguator `prim` and suffix `()` |
| 98 | +//! [prim@m!] //~ WARN: unmatched disambiguator `prim` and suffix `!` |
| 99 | +//! |
| 100 | +//! [primitive@m!()] //~ WARN: unmatched disambiguator `primitive` and suffix `!()` |
| 101 | +//! [primitive@m!{}] |
| 102 | +//! [primitive@m![]] |
| 103 | +//! [primitive@f()] //~ WARN: unmatched disambiguator `primitive` and suffix `()` |
| 104 | +//! [primitive@m!] //~ WARN: unmatched disambiguator `primitive` and suffix `!` |
| 105 | +
|
| 106 | +#[macro_export] |
| 107 | +macro_rules! m { |
| 108 | + () => {}; |
| 109 | +} |
| 110 | + |
| 111 | +pub fn f() {} |
0 commit comments