File tree Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Expand file tree Collapse file tree 3 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ #![warn(clippy::doc_markdown)]
2+
3+ // Should not warn!
4+ /// Blah blah blah <code>[FooBar]<[FooBar]></code>.
5+ pub struct Foo(u32);
6+
7+ // Should warn.
8+ /// Blah blah blah <code>[FooBar]<[FooBar]></code>[`FooBar`].
9+ pub struct FooBar(u32);
Original file line number Diff line number Diff line change 1+ #![ warn( clippy:: doc_markdown) ]
2+
3+ // Should not warn!
4+ /// Blah blah blah <code>[FooBar]<[FooBar]></code>.
5+ pub struct Foo ( u32 ) ;
6+
7+ // Should warn.
8+ /// Blah blah blah <code>[FooBar]<[FooBar]></code>[FooBar].
9+ pub struct FooBar ( u32 ) ;
Original file line number Diff line number Diff line change 1+ error: item in documentation is missing backticks
2+ --> tests/ui/doc/issue_9473.rs:8:58
3+ |
4+ LL | /// Blah blah blah <code>[FooBar]<[FooBar]></code>[FooBar].
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 | /// Blah blah blah <code>[FooBar]<[FooBar]></code>[`FooBar`].
12+ | ~~~~~~~~
13+
14+ error: aborting due to 1 previous error
15+
You can’t perform that action at this time.
0 commit comments