Add test for cross-crate Self

This commit is contained in:
Joshua Nelson 2020-11-29 13:49:44 -05:00
parent aa8c9b0d29
commit 2b17f02561
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#![crate_name = "cross_crate_self"]
pub struct S;
impl S {
/// Link to [Self::f]
pub fn f() {}
}

View File

@ -0,0 +1,6 @@
// aux-build:self.rs
extern crate cross_crate_self;
// @has self/struct.S.html '//a[@href="../self/struct.S.html#method.f"]' "Self::f"
pub use cross_crate_self::S;