about summary refs log tree commit diff
path: root/tests/rustdoc-ui/intra-doc/filter-out-private.rs
blob: f481b51dad0660faf9def9a0e1dec9b2d06e03c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// This test ensures that ambiguities resolved at a later stage still emit an error.

#![deny(rustdoc::broken_intra_doc_links)]
#![crate_name = "foo"]

pub struct Thing {}

#[allow(non_snake_case)]
pub fn Thing() {}

/// Do stuff with [`Thing`].
//~^ ERROR `Thing` is both a function and a struct
pub fn repro(_: Thing) {}