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;
|
|
|
|
}
|
|
|
|
|
2023-05-22 12:17:52 -05:00
|
|
|
// @has "$.index[*][?(@.name=='get_secret')].inner.function"
|
|
|
|
// @is "$.index[*][?(@.name=='get_secret')].inner.function.decl.output.resolved_path.name" \"secret::Secret\"
|
2022-07-15 10:48:46 -05:00
|
|
|
pub fn get_secret() -> secret::Secret {
|
|
|
|
secret::Secret
|
|
|
|
}
|