rust-clippy/tests/ui/doc/issue_9473.fixed

10 lines
240 B
Rust
Raw Normal View History

2024-03-05 11:07:37 +00:00
#![warn(clippy::doc_markdown)]
// Should not warn!
/// Blah blah blah <code>[FooBar]&lt;[FooBar]&gt;</code>.
pub struct Foo(u32);
// Should warn.
/// Blah blah blah <code>[FooBar]&lt;[FooBar]&gt;</code>[`FooBar`].
pub struct FooBar(u32);