mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 01:13:11 +00:00
add test for pub extern crate
This commit is contained in:
parent
3f03297956
commit
ca47808479
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…
Reference in New Issue
Block a user