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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
311 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
//@ 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 {}