mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	Closes https://github.com/rust-lang/rust/issues/135600 Effectivly reverts https://github.com/rust-lang/rust/pull/134880
		
			
				
	
	
		
			15 lines
		
	
	
		
			558 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			558 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// Regression test for <https://github.com/rust-lang/rust/issues/96161>.
 | 
						|
// ignore-tidy-linelength
 | 
						|
 | 
						|
mod secret {
 | 
						|
    //@ set struct_secret = "$.index[*][?(@.name == 'Secret' && @.inner.struct)].id"
 | 
						|
    pub struct Secret;
 | 
						|
}
 | 
						|
 | 
						|
//@ has "$.index[*][?(@.name=='get_secret')].inner.function"
 | 
						|
//@ 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
 | 
						|
pub fn get_secret() -> secret::Secret {
 | 
						|
    secret::Secret
 | 
						|
}
 |