rust/tests/rustdoc-json/primitives/primitive_overloading.rs

13 lines
310 B
Rust
Raw Normal View History

2022-06-17 07:41:26 -05:00
// compile-flags: --document-private-items
// Regression test for <https://github.com/rust-lang/rust/issues/98006>.
2023-03-21 10:44:06 -05:00
#![feature(rustc_attrs)]
2022-06-17 07:41:26 -05:00
2022-08-17 05:55:09 -05:00
// @has "$.index[*][?(@.name=='usize')]"
// @has "$.index[*][?(@.name=='prim')]"
2022-06-17 07:41:26 -05:00
2023-03-21 10:44:06 -05:00
#[rustc_doc_primitive = "usize"]
2022-06-17 07:41:26 -05:00
/// This is the built-in type `usize`.
mod prim {}