mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			245 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			245 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // revisions: rpass1 rpass2
 | |
| // edition:2021
 | |
| 
 | |
| // See https://github.com/rust-lang/rust/issues/98890
 | |
| 
 | |
| #![allow(unused)]
 | |
| 
 | |
| struct Foo;
 | |
| 
 | |
| impl Foo {
 | |
|     async fn f(&self, _: &&()) -> &() {
 | |
|         &()
 | |
|     }
 | |
| }
 | |
| 
 | |
| #[cfg(rpass2)]
 | |
| enum Bar {}
 | |
| 
 | |
| fn main() {}
 | 
