Skip to content

Commit 3dfd268

Browse files
committed
rustdoc-json: Add tests for re-exports of primitives
1 parent 4e73d90 commit 3dfd268

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/rustdoc-json/primitive.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ mod usize {}
1212
// @has - "$.index[*][?(@.name=='checked_add')]"
1313
// @!is - "$.index[*][?(@.name=='checked_add')]" $local_crate_id
1414
// @!has - "$.index[*][?(@.name=='is_ascii_uppercase')]"
15+
16+
// @is - "$.index[*][?(@.kind=='import' && @.inner.name=='my_i32')].inner.id" null
17+
pub use i32 as my_i32;
18+
19+
// @is - "$.index[*][?(@.kind=='import' && @.inner.name=='u32')].inner.id" null
20+
pub use u32;

0 commit comments

Comments
 (0)