Skip to content

Commit 7cdf126

Browse files
Add regression test for #98006
1 parent 87d90b1 commit 7cdf126

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// compile-flags: --document-private-items
2+
3+
// Regression test for <https://github.com/rust-lang/rust/issues/98006>.
4+
5+
#![feature(rustdoc_internals)]
6+
#![feature(no_core)]
7+
8+
#![no_core]
9+
10+
// @has primitive_overloading.json
11+
// @has - "$.index[*][?(@.name=='usize')]"
12+
// @has - "$.index[*][?(@.name=='prim')]"
13+
14+
#[doc(primitive = "usize")]
15+
/// This is the built-in type `usize`.
16+
mod prim {
17+
}

0 commit comments

Comments
 (0)