rust/tests/rustdoc-json/return_private.rs

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

13 lines
371 B
Rust
Raw Normal View History

2022-07-15 23:48:46 +08:00
// Regression test for <https://github.com/rust-lang/rust/issues/96161>.
// ignore-tidy-linelength
mod secret {
pub struct Secret;
}
//@ has "$.index[*][?(@.name=='get_secret')].inner.function"
//@ is "$.index[*][?(@.name=='get_secret')].inner.function.decl.output.resolved_path.name" \"secret::Secret\"
2022-07-15 23:48:46 +08:00
pub fn get_secret() -> secret::Secret {
secret::Secret
}