rust/tests/ui/doc/doc_nested_refdef_blockquote.stderr
Michael Howell 44feca7f3f doc_nested_refdefs: new lint for suspicious refdef syntax
This is more likely to be intended as an intra-doc link than it is
to be intended as a refdef. If a refdef is intended, it does not
need to be nested within a list item or quote.

```markdown
- [`LONG_INTRA_DOC_LINK`]: this
  looks like an intra-doc link,
  but is actually a refdef.
  The first line will seem to
  disappear when rendered as HTML.
```
2024-11-27 13:42:04 -07:00

148 lines
4.3 KiB
Text

error: link reference defined in quote
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:4:7
|
LL | /// > [link]: def
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
= note: `-D clippy::doc-nested-refdefs` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::doc_nested_refdefs)]`
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > [link][]: def
| ++
error: link reference defined in quote
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:7:7
|
LL | /// > [link]: def (title)
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > [link][]: def (title)
| ++
error: link reference defined in quote
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:10:7
|
LL | /// > [link]: def "title"
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > [link][]: def "title"
| ++
error: link reference defined in quote
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:21:7
|
LL | /// > [link]: def
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > [link][]: def
| ++
error: link reference defined in quote
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:25:7
|
LL | /// > [link]: def (title)
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > [link][]: def (title)
| ++
error: link reference defined in quote
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:29:7
|
LL | /// > [link]: def "title"
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > [link][]: def "title"
| ++
error: link reference defined in quote
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:44:7
|
LL | /// > [link]: def
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > [link][]: def
| ++
error: link reference defined in quote
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:49:7
|
LL | /// > [link]: def (title)
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > [link][]: def (title)
| ++
error: link reference defined in quote
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:54:7
|
LL | /// > [link]: def "title"
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > [link][]: def "title"
| ++
error: link reference defined in list item
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:119:9
|
LL | /// > - [link]: def
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > - [link][]: def
| ++
error: link reference defined in list item
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:122:9
|
LL | /// > - [link]: def (title)
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > - [link][]: def (title)
| ++
error: link reference defined in list item
--> tests/ui/doc/doc_nested_refdef_blockquote.rs:125:9
|
LL | /// > - [link]: def "title"
| ^^^^^^
|
= help: link definitions are not shown in rendered documentation
help: for an intra-doc link, add `[]` between the label and the colon
|
LL | /// > - [link][]: def "title"
| ++
error: aborting due to 12 previous errors