Add test case for Self:: links

This commit is contained in:
Dániel Buga 2020-11-30 23:17:11 +01:00
parent cc31b992b1
commit fa64c272c8
1 changed files with 14 additions and 0 deletions

View 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 }
}