rust/tests/rustdoc/raw-ident-eliminate-r-hashtag.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
673 B
Rust
Raw Permalink Normal View History

2020-11-13 07:58:21 -06:00
#![crate_type="lib"]
2020-11-11 18:05:27 -06:00
pub mod internal {
//@ has 'raw_ident_eliminate_r_hashtag/internal/struct.mod.html'
#[allow(non_camel_case_types)]
2020-11-11 18:05:27 -06:00
pub struct r#mod;
/// See [name], [other name]
///
/// [name]: mod
/// [other name]: crate::internal::mod
//@ has 'raw_ident_eliminate_r_hashtag/internal/struct.B.html' '//*a[@href="struct.mod.html"]' 'name'
//@ has 'raw_ident_eliminate_r_hashtag/internal/struct.B.html' '//*a[@href="struct.mod.html"]' 'other name'
2020-11-11 18:05:27 -06:00
pub struct B;
}
/// See [name].
///
/// [name]: internal::mod
//@ has 'raw_ident_eliminate_r_hashtag/struct.A.html' '//*a[@href="internal/struct.mod.html"]' 'name'
2020-11-13 07:58:21 -06:00
pub struct A;