mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
Add test for documenting the re-export
This commit is contained in:
parent
e78d499637
commit
9eb63945eb
8
src/test/rustdoc/intra-doc-crate/additional_doc.rs
Normal file
8
src/test/rustdoc/intra-doc-crate/additional_doc.rs
Normal 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;
|
@ -0,0 +1,5 @@
|
||||
#![crate_name = "rand"]
|
||||
|
||||
pub trait RngCore {}
|
||||
/// Rng extends [`RngCore`].
|
||||
pub trait Rng: RngCore {}
|
Loading…
Reference in New Issue
Block a user