2022-07-15 17:48:46 +02:00
|
|
|
// Regression test for <https://github.com/rust-lang/rust/issues/96161>.
|
|
|
|
|
|
|
|
mod secret {
|
2025-01-20 22:36:58 +00:00
|
|
|
//@ set struct_secret = "$.index[*][?(@.name == 'Secret' && @.inner.struct)].id"
|
2022-07-15 17:48:46 +02:00
|
|
|
pub struct Secret;
|
|
|
|
}
|
|
|
|
|
2024-07-19 16:50:47 +02:00
|
|
|
//@ has "$.index[*][?(@.name=='get_secret')].inner.function"
|
2025-01-20 22:36:58 +00:00
|
|
|
//@ is "$.index[*][?(@.name=='get_secret')].inner.function.sig.output.resolved_path.path" '"secret::Secret"'
|
|
|
|
//@ is "$.index[*][?(@.name=='get_secret')].inner.function.sig.output.resolved_path.id" $struct_secret
|
2022-07-15 17:48:46 +02:00
|
|
|
pub fn get_secret() -> secret::Secret {
|
|
|
|
secret::Secret
|
|
|
|
}
|