]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/reference-link-reports-error-once.rs
Delay span bug when failing to normalize negative coherence impl subject due to other...
[rust.git] / src / test / rustdoc-ui / reference-link-reports-error-once.rs
1 #![deny(rustdoc::broken_intra_doc_links)]
2
3 /// Links to [a] [link][a]
4 /// And also a [third link][a]
5 /// And also a [reference link][b]
6 ///
7 /// Other links to the same target should still emit error: [ref] //~ERROR unresolved link to `ref`
8 /// Duplicate [ref] //~ERROR unresolved link to `ref`
9 ///
10 /// Other links to other targets should still emit error: [ref2] //~ERROR unresolved link to `ref2`
11 /// Duplicate [ref2] //~ERROR unresolved link to `ref2`
12 ///
13 /// [a]: ref
14 //~^ ERROR unresolved link to `ref`
15 /// [b]: ref2
16 //~^ ERROR unresolved link to
17
18 /// [ref][]
19 //~^ ERROR unresolved link
20 pub fn f() {}