Skip to content

Commit f5e67b5

Browse files
committed
Add a test for r# identifiers
1 parent 5404efc commit f5e67b5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
pub mod internal {
2+
pub struct r#mod;
3+
4+
/// See [name], [other name]
5+
///
6+
/// [name]: mod
7+
/// [other name]: ../internal/struct.mod.html
8+
// @has 'raw_ident_eliminate_r_hashtag/internal/struct.B.html' '//a[@href="../raw_ident_eliminate_r_hashtag/internal/struct.mod.html"]' 'name'
9+
// @has 'raw_ident_eliminate_r_hashtag/internal/struct.B.html' '//a[@href="../raw_ident_eliminate_r_hashtag/internal/struct.mod.html"]' 'other name'
10+
pub struct B;
11+
}
12+
13+
/// See [name].
14+
///
15+
/// [name]: internal::mod
16+
// @has 'raw_ident_eliminate_r_hashtag/struct.A.html' '//a[@href="../raw_ident_eliminate_r_hashtag/internal/struct.mod.html"]' 'name'
17+
struct A;

0 commit comments

Comments
 (0)