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

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

20 lines
593 B
Rust
Raw Normal View History

2021-08-28 08:01:56 -05:00
//@ edition:2018
2023-03-21 10:44:06 -05:00
#![feature(rustc_attrs)]
2021-08-28 08:01:56 -05:00
2023-03-21 10:44:06 -05:00
#[rustc_doc_primitive = "usize"]
2021-08-28 08:01:56 -05:00
mod usize {}
//@ set local_crate_id = "$.index[*][?(@.name=='use_primitive')].crate_id"
2021-08-28 08:01:56 -05:00
//@ has "$.index[*][?(@.name=='ilog10')]"
//@ !is "$.index[*][?(@.name=='ilog10')].crate_id" $local_crate_id
//@ has "$.index[*][?(@.name=='checked_add')]"
//@ !is "$.index[*][?(@.name=='checked_add')]" $local_crate_id
//@ !has "$.index[*][?(@.name=='is_ascii_uppercase')]"
//@ is "$.index[*].inner.use[?(@.name=='my_i32')].id" null
pub use i32 as my_i32;
//@ is "$.index[*].inner.use[?(@.name=='u32')].id" null
pub use u32;