Add a test for r# identifiers
This commit is contained in:
parent
5404efc28a
commit
f5e67b5ee1
17
src/test/rustdoc/raw-ident-eliminate-r-hashtag.rs
Normal file
17
src/test/rustdoc/raw-ident-eliminate-r-hashtag.rs
Normal file
@ -0,0 +1,17 @@
|
||||
pub mod internal {
|
||||
pub struct r#mod;
|
||||
|
||||
/// See [name], [other name]
|
||||
///
|
||||
/// [name]: mod
|
||||
/// [other name]: ../internal/struct.mod.html
|
||||
// @has 'raw_ident_eliminate_r_hashtag/internal/struct.B.html' '//a[@href="../raw_ident_eliminate_r_hashtag/internal/struct.mod.html"]' 'name'
|
||||
// @has 'raw_ident_eliminate_r_hashtag/internal/struct.B.html' '//a[@href="../raw_ident_eliminate_r_hashtag/internal/struct.mod.html"]' 'other name'
|
||||
pub struct B;
|
||||
}
|
||||
|
||||
/// See [name].
|
||||
///
|
||||
/// [name]: internal::mod
|
||||
// @has 'raw_ident_eliminate_r_hashtag/struct.A.html' '//a[@href="../raw_ident_eliminate_r_hashtag/internal/struct.mod.html"]' 'name'
|
||||
struct A;
|
Loading…
Reference in New Issue
Block a user