Skip to content

Commit

Permalink
Add regression test for rust-lang#98006
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 17, 2022
1 parent 87d90b1 commit 7cdf126
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/test/rustdoc-json/primitive_overloading.rs
Original file line number Diff line number Diff line change
@@ -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 {
}

0 comments on commit 7cdf126

Please sign in to comment.