Add tests for basic intra-doc links

This commit is contained in:
Joshua Nelson 2020-06-07 21:16:54 -04:00
parent 24c3d85e66
commit 9542e23a7d
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#![crate_name = "a"]
pub struct Foo;
/// Link to [Foo]
pub struct Bar;

View File

@ -0,0 +1,6 @@
// aux-build:intra-doc-basic.rs
// build-aux-docs
extern crate a;
// @has 'basic/struct.Bar.html' '//a[@href="../a/struct.Foo.html"]' 'Foo'
pub use a::Bar;