Add test case for Self:: links
This commit is contained in:
parent
cc31b992b1
commit
fa64c272c8
1 changed files with 14 additions and 0 deletions
14
src/test/rustdoc/intra-link-self-cache.rs
Normal file
14
src/test/rustdoc/intra-link-self-cache.rs
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#![crate_name = "foo"]
|
||||||
|
// @has foo/enum.E1.html '//a/@href' '../foo/enum.E1.html#variant.A'
|
||||||
|
|
||||||
|
/// [Self::A::b]
|
||||||
|
pub enum E1 {
|
||||||
|
A { b: usize }
|
||||||
|
}
|
||||||
|
|
||||||
|
// @has foo/enum.E2.html '//a/@href' '../foo/enum.E2.html#variant.A'
|
||||||
|
|
||||||
|
/// [Self::A::b]
|
||||||
|
pub enum E2 {
|
||||||
|
A { b: usize }
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue