Skip to content

Commit

Permalink
Add a test for r# identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
poliorcetics committed Nov 12, 2020
1 parent 5404efc commit f5e67b5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/rustdoc/raw-ident-eliminate-r-hashtag.rs
@@ -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;

0 comments on commit f5e67b5

Please sign in to comment.