Add regression test for inline doc
This commit is contained in:
parent
1476b39fae
commit
25919b09a9
13
tests/rustdoc-ui/lints/inline-doc-link.rs
Normal file
13
tests/rustdoc-ui/lints/inline-doc-link.rs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// Regression test for <https://github.com/rust-lang/rust/pull/113167>
|
||||||
|
|
||||||
|
// check-pass
|
||||||
|
#![deny(rustdoc::redundant_explicit_links)]
|
||||||
|
|
||||||
|
mod m {
|
||||||
|
pub enum ValueEnum {}
|
||||||
|
}
|
||||||
|
mod m2 {
|
||||||
|
/// [`ValueEnum`]
|
||||||
|
pub use crate::m::ValueEnum;
|
||||||
|
}
|
||||||
|
pub use m2::ValueEnum;
|
Loading…
x
Reference in New Issue
Block a user