]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-json/return_private.rs
Merge commit '7d53619064ab7045c383644cb445052d2a3d46db' into sync_cg_clif-2023-02-09
[rust.git] / tests / rustdoc-json / return_private.rs
1 // Regression test for <https://github.com/rust-lang/rust/issues/96161>.
2 // ignore-tidy-linelength
3
4 #![feature(no_core)]
5 #![no_core]
6
7 mod secret {
8     pub struct Secret;
9 }
10
11 // @is "$.index[*][?(@.name=='get_secret')].kind" \"function\"
12 // @is "$.index[*][?(@.name=='get_secret')].inner.decl.output.inner.name" \"secret::Secret\"
13 pub fn get_secret() -> secret::Secret {
14     secret::Secret
15 }