Skip to content

Commit afafb22

Browse files
Rollup merge of rust-lang#121572 - notriddle:notriddle/test-case-121106, r=GuillaumeGomez
Add test case for primitive links in alias js Follow up rust-lang#121490 CC rust-lang#121106
2 parents 3d25d44 + 0da1b71 commit afafb22

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#![crate_name = "foo"]
2+
3+
#![feature(rustc_attrs)]
4+
5+
// @has foo/primitive.i32.html '//h1' 'Primitive Type i32'
6+
// @has foo/index.html '//a/@href' '../foo/index.html'
7+
#[rustc_doc_primitive = "i32"]
8+
mod i32 {}
9+
10+
// @has foo/struct.Node.html '//a/@href' 'primitive.i32.html'
11+
pub struct Node;
12+
13+
impl Node {
14+
pub fn edge(&self) -> i32 { 0 }
15+
}
16+
17+
// @!has foo/type.Alias.html '//a/@href' 'primitive.i32.html'
18+
// @hasraw 'type.impl/foo/struct.Node.js' 'href=\"foo/primitive.i32.html\"'
19+
pub type Alias = Node;

0 commit comments

Comments
 (0)