Add test for documenting the re-export

This commit is contained in:
Joshua Nelson 2020-06-07 22:11:03 -04:00
parent e78d499637
commit 9eb63945eb
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// aux-build:additional_doc.rs
// build-aux-docs
extern crate rand;
// @has 'additional_doc/trait.Rng.html' '//a[@href="../additional_doc/trait.Rng.html"]' 'Rng'
// @has 'additional_doc/trait.Rng.html' '//a[@href="../rand/trait.RngCore.html"]' 'RngCore'
/// This is an [`Rng`].
pub use rand::Rng;

View File

@ -0,0 +1,5 @@
#![crate_name = "rand"]
pub trait RngCore {}
/// Rng extends [`RngCore`].
pub trait Rng: RngCore {}