Skip to content

Commit cd36b25

Browse files
Add regression test for #10262
1 parent 11759d1 commit cd36b25

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

tests/ui/doc/issue_10262.fixed

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![warn(clippy::doc_markdown)]
2+
3+
// Should only warn for the first line!
4+
/// `AviSynth` documentation:
5+
//~^ ERROR: item in documentation is missing backticks
6+
///
7+
/// > AvisynthPluginInit3 may be called more than once with different IScriptEnvironments.
8+
pub struct Foo;

tests/ui/doc/issue_10262.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#![warn(clippy::doc_markdown)]
2+
3+
// Should only warn for the first line!
4+
/// AviSynth documentation:
5+
//~^ ERROR: item in documentation is missing backticks
6+
///
7+
/// > AvisynthPluginInit3 may be called more than once with different IScriptEnvironments.
8+
pub struct Foo;

tests/ui/doc/issue_10262.stderr

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
error: item in documentation is missing backticks
2+
--> tests/ui/doc/issue_10262.rs:4:5
3+
|
4+
LL | /// AviSynth documentation:
5+
| ^^^^^^^^
6+
|
7+
= note: `-D clippy::doc-markdown` implied by `-D warnings`
8+
= help: to override `-D warnings` add `#[allow(clippy::doc_markdown)]`
9+
help: try
10+
|
11+
LL | /// `AviSynth` documentation:
12+
| ~~~~~~~~~~
13+
14+
error: aborting due to 1 previous error
15+

0 commit comments

Comments
 (0)