Add regression test for #98006

This commit is contained in:
Guillaume Gomez 2022-06-17 14:41:26 +02:00
parent 87d90b1332
commit 7cdf126a3a
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
// compile-flags: --document-private-items
// Regression test for <https://github.com/rust-lang/rust/issues/98006>.
#![feature(rustdoc_internals)]
#![feature(no_core)]
#![no_core]
// @has primitive_overloading.json
// @has - "$.index[*][?(@.name=='usize')]"
// @has - "$.index[*][?(@.name=='prim')]"
#[doc(primitive = "usize")]
/// This is the built-in type `usize`.
mod prim {
}