fork/rust

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

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

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