about summary refs log tree commit diff
path: root/tests/rustdoc-ui/issues/issue-120444-2.rs
blob: d13bf8846243593729fa7aa6066110fc8cf2c1a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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;