Skip to content

Commit 9eb6394

Browse files
committed
Add test for documenting the re-export
1 parent e78d499 commit 9eb6394

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// aux-build:additional_doc.rs
2+
// build-aux-docs
3+
extern crate rand;
4+
5+
// @has 'additional_doc/trait.Rng.html' '//a[@href="../additional_doc/trait.Rng.html"]' 'Rng'
6+
// @has 'additional_doc/trait.Rng.html' '//a[@href="../rand/trait.RngCore.html"]' 'RngCore'
7+
/// This is an [`Rng`].
8+
pub use rand::Rng;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#![crate_name = "rand"]
2+
3+
pub trait RngCore {}
4+
/// Rng extends [`RngCore`].
5+
pub trait Rng: RngCore {}

0 commit comments

Comments
 (0)