summary refs log tree commit diff
path: root/src/test/rustdoc/intra-doc/mod-ambiguity.rs
blob: 24b9dc30a9e496cd50123c6522e829f8540f085a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![deny(broken_intra_doc_links)]


pub fn foo() {

}

pub mod foo {}
// @has mod_ambiguity/struct.A.html '//a/@href' 'foo/index.html'
/// Module is [`module@foo`]
pub struct A;


// @has mod_ambiguity/struct.B.html '//a/@href' 'fn.foo.html'
/// Function is [`fn@foo`]
pub struct B;