mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
18 lines
495 B
Rust
18 lines
495 B
Rust
//@ run-rustfix
|
|
|
|
// There was a logic error in `redundant_explicit_links` that caused the lint
|
|
// to skip all remaining links once it skipped a link containing inline markups.
|
|
// This test asserts that the lint continues after skipping such links.
|
|
|
|
#![deny(rustdoc::redundant_explicit_links)]
|
|
|
|
/// [Option][Option]
|
|
///~^ ERROR redundant explicit link target
|
|
///
|
|
/// [**u8**](u8)
|
|
/// This link should not lint.
|
|
///
|
|
/// [Result][Result]
|
|
///~^ ERROR redundant explicit link target
|
|
pub fn func() {}
|