add test for pub extern crate
This commit is contained in:
parent
3f03297956
commit
ca47808479
2 changed files with 11 additions and 0 deletions
2
src/test/rustdoc/auxiliary/pub-extern-crate.rs
Normal file
2
src/test/rustdoc/auxiliary/pub-extern-crate.rs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#![crate_name = "inner"]
|
||||
pub struct SomeStruct;
|
||||
9
src/test/rustdoc/pub-extern-crate.rs
Normal file
9
src/test/rustdoc/pub-extern-crate.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
// aux-build:pub-extern-crate.rs
|
||||
|
||||
// @has pub_extern_crate/index.html
|
||||
// @!has - '//code' 'pub extern crate inner'
|
||||
// @has - '//a/@href' 'inner/index.html'
|
||||
// @has pub_extern_crate/inner/index.html
|
||||
// @has pub_extern_crate/inner/struct.SomeStruct.html
|
||||
#[doc(inline)]
|
||||
pub extern crate inner;
|
||||
Loading…
Add table
Add a link
Reference in a new issue