about summary refs log tree commit diff
path: root/tests/rustdoc-ui/issues/issue-120444-2.rs
blob: f0e842fd8587c34bddba712ee0cf85c571b1f2f2 (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;