2022-07-15 10:48:46 -05:00
|
|
|
// Regression test for <https://github.com/rust-lang/rust/issues/96161>.
|
|
|
|
// ignore-tidy-linelength
|
|
|
|
|
|
|
|
#![feature(no_core)]
|
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
mod secret {
|
|
|
|
pub struct Secret;
|
|
|
|
}
|
|
|
|
|
2022-08-17 05:55:09 -05:00
|
|
|
// @is "$.index[*][?(@.name=='get_secret')].kind" \"function\"
|
|
|
|
// @is "$.index[*][?(@.name=='get_secret')].inner.decl.output.inner.name" \"secret::Secret\"
|
2022-07-15 10:48:46 -05:00
|
|
|
pub fn get_secret() -> secret::Secret {
|
|
|
|
secret::Secret
|
|
|
|
}
|