Skip to content

Commit 9542e23

Browse files
committed
Add tests for basic intra-doc links
1 parent 24c3d85 commit 9542e23

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![crate_name = "a"]
2+
pub struct Foo;
3+
4+
/// Link to [Foo]
5+
pub struct Bar;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// aux-build:intra-doc-basic.rs
2+
// build-aux-docs
3+
extern crate a;
4+
5+
// @has 'basic/struct.Bar.html' '//a[@href="../a/struct.Foo.html"]' 'Foo'
6+
pub use a::Bar;

0 commit comments

Comments
 (0)