fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB37 linesraw
1error: `Trait::IDENT` is both an associated constant and an associated type
2  --> $DIR/issue-108653-associated-items-2.rs:5:7
3   |
4LL | /// [`Trait::IDENT`]
5   |       ^^^^^^^^^^^^ ambiguous link
6   |
7note: the lint level is defined here
8  --> $DIR/issue-108653-associated-items-2.rs:3:9
9   |
10LL | #![deny(rustdoc::broken_intra_doc_links)]
11   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12help: to link to the associated constant, prefix with `const@`
13   |
14LL | /// [`const@Trait::IDENT`]
15   |       ++++++
16help: to link to the associated type, prefix with `type@`
17   |
18LL | /// [`type@Trait::IDENT`]
19   |       +++++
20
21error: `Trait2::IDENT` is both an associated function and an associated type
22  --> $DIR/issue-108653-associated-items-2.rs:12:7
23   |
24LL | /// [`Trait2::IDENT`]
25   |       ^^^^^^^^^^^^^ ambiguous link
26   |
27help: to link to the associated function, add parentheses
28   |
29LL | /// [`Trait2::IDENT()`]
30   |                    ++
31help: to link to the associated type, prefix with `type@`
32   |
33LL | /// [`type@Trait2::IDENT`]
34   |       +++++
35
36error: aborting due to 2 previous errors
37