summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-json/primitive.rs
blob: b84c2f7c6ac39e440090cfb83ebbe7e2ed9c4147 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// edition:2018

#![feature(rustdoc_internals)]

#[doc(primitive = "usize")]
mod usize {}

// @set local_crate_id = primitive.json "$.index[*][?(@.name=='primitive')].crate_id"

// @has - "$.index[*][?(@.name=='log10')]"
// @!is - "$.index[*][?(@.name=='log10')].crate_id" $local_crate_id
// @has - "$.index[*][?(@.name=='checked_add')]"
// @!is - "$.index[*][?(@.name=='checked_add')]" $local_crate_id
// @!has - "$.index[*][?(@.name=='is_ascii_uppercase')]"