mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Add regression test for #10262
This commit is contained in:
parent
11759d1bad
commit
cd36b25c4f
3 changed files with 31 additions and 0 deletions
8
tests/ui/doc/issue_10262.fixed
Normal file
8
tests/ui/doc/issue_10262.fixed
Normal file
|
@ -0,0 +1,8 @@
|
|||
#![warn(clippy::doc_markdown)]
|
||||
|
||||
// Should only warn for the first line!
|
||||
/// `AviSynth` documentation:
|
||||
//~^ ERROR: item in documentation is missing backticks
|
||||
///
|
||||
/// > AvisynthPluginInit3 may be called more than once with different IScriptEnvironments.
|
||||
pub struct Foo;
|
8
tests/ui/doc/issue_10262.rs
Normal file
8
tests/ui/doc/issue_10262.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
#![warn(clippy::doc_markdown)]
|
||||
|
||||
// Should only warn for the first line!
|
||||
/// AviSynth documentation:
|
||||
//~^ ERROR: item in documentation is missing backticks
|
||||
///
|
||||
/// > AvisynthPluginInit3 may be called more than once with different IScriptEnvironments.
|
||||
pub struct Foo;
|
15
tests/ui/doc/issue_10262.stderr
Normal file
15
tests/ui/doc/issue_10262.stderr
Normal file
|
@ -0,0 +1,15 @@
|
|||
error: item in documentation is missing backticks
|
||||
--> tests/ui/doc/issue_10262.rs:4:5
|
||||
|
|
||||
LL | /// AviSynth documentation:
|
||||
| ^^^^^^^^
|
||||
|
|
||||
= note: `-D clippy::doc-markdown` implied by `-D warnings`
|
||||
= help: to override `-D warnings` add `#[allow(clippy::doc_markdown)]`
|
||||
help: try
|
||||
|
|
||||
LL | /// `AviSynth` documentation:
|
||||
| ~~~~~~~~~~
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
Loading…
Reference in a new issue