rust/tests/rustdoc-ui/issues/issue-120444-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
288 B
Rust
Raw Normal View History

//@ compile-flags: --document-private-items
#![deny(rustdoc::redundant_explicit_links)]
pub mod webdavfs {
pub struct A;
pub struct B;
}
/// [`Vfs`][crate::Vfs]
pub use webdavfs::A;
//~^^ error: redundant explicit link target
/// [`Vfs`]
pub use webdavfs::B;
pub struct Vfs;