rust/tests/rustdoc-json/reexport/glob_extern.rs

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

20 lines
708 B
Rust
Raw Normal View History

2021-02-26 16:55:08 -06:00
//@ edition:2018
//@ is "$.index[*][?(@.name=='mod1')].inner.module.is_stripped" "true"
2021-02-26 16:55:08 -06:00
mod mod1 {
extern "C" {
//@ set public_fn_id = "$.index[*][?(@.name=='public_fn')].id"
2021-02-26 16:55:08 -06:00
pub fn public_fn();
//@ !has "$.index[*][?(@.name=='private_fn')]"
2021-02-26 16:55:08 -06:00
fn private_fn();
}
//@ ismany "$.index[*][?(@.name=='mod1')].inner.module.items[*]" $public_fn_id
//@ set mod1_id = "$.index[*][?(@.name=='mod1')].id"
2021-02-26 16:55:08 -06:00
}
//@ is "$.index[*][?(@.inner.use)].inner.use.is_glob" true
//@ is "$.index[*][?(@.inner.use)].inner.use.id" $mod1_id
//@ set use_id = "$.index[*][?(@.inner.use)].id"
//@ ismany "$.index[*][?(@.name=='glob_extern')].inner.module.items[*]" $use_id
2021-02-26 16:55:08 -06:00
pub use mod1::*;