@@ -33,21 +33,6 @@ help: to link to the associated type, prefix with `type@`
3333LL | /// [`type@Self::IDENT2`]
3434 | +++++
3535
36- error: `Self::IDENT2` is both an associated constant and an associated type
37- --> $DIR/issue-108653-associated-items.rs:30:7
38- |
39- LL | /// [`Self::IDENT2`]
40- | ^^^^^^^^^^^^ ambiguous link
41- |
42- help: to link to the associated constant, prefix with `const@`
43- |
44- LL | /// [`const@Self::IDENT2`]
45- | ++++++
46- help: to link to the associated type, prefix with `type@`
47- |
48- LL | /// [`type@Self::IDENT2`]
49- | +++++
50-
5136error: `Self::IDENT` is both an associated function and a variant
5237 --> $DIR/issue-108653-associated-items.rs:16:7
5338 |
@@ -63,5 +48,20 @@ help: to link to the variant, prefix with `type@`
6348LL | /// [`type@Self::IDENT`]
6449 | +++++
6550
51+ error: `Self::IDENT2` is both an associated constant and an associated type
52+ --> $DIR/issue-108653-associated-items.rs:30:7
53+ |
54+ LL | /// [`Self::IDENT2`]
55+ | ^^^^^^^^^^^^ ambiguous link
56+ |
57+ help: to link to the associated constant, prefix with `const@`
58+ |
59+ LL | /// [`const@Self::IDENT2`]
60+ | ++++++
61+ help: to link to the associated type, prefix with `type@`
62+ |
63+ LL | /// [`type@Self::IDENT2`]
64+ | +++++
65+
6666error: aborting due to 4 previous errors
6767
0 commit comments