add test for pub extern crate

This commit is contained in:
DebugSteven 2019-01-10 21:18:46 -05:00
parent 3f03297956
commit ca47808479
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,2 @@
#![crate_name = "inner"]
pub struct SomeStruct;

View 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;