Skip to content

Commit ca47808

Browse files
committed
add test for pub extern crate
1 parent 3f03297 commit ca47808

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#![crate_name = "inner"]
2+
pub struct SomeStruct;

src/test/rustdoc/pub-extern-crate.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// aux-build:pub-extern-crate.rs
2+
3+
// @has pub_extern_crate/index.html
4+
// @!has - '//code' 'pub extern crate inner'
5+
// @has - '//a/@href' 'inner/index.html'
6+
// @has pub_extern_crate/inner/index.html
7+
// @has pub_extern_crate/inner/struct.SomeStruct.html
8+
#[doc(inline)]
9+
pub extern crate inner;

0 commit comments

Comments
 (0)