rust/src/test/rustdoc/intra-doc/mod-ambiguity.rs

17 lines
316 B
Rust
Raw Normal View History

#![deny(broken_intra_doc_links)]
pub fn foo() {
}
pub mod foo {}
// @has mod_ambiguity/struct.A.html '//a/@href' '../mod_ambiguity/foo/index.html'
/// Module is [`module@foo`]
pub struct A;
// @has mod_ambiguity/struct.B.html '//a/@href' '../mod_ambiguity/fn.foo.html'
/// Function is [`fn@foo`]
pub struct B;