mirror of
				https://git.proxmox.com/git/rustc
				synced 2025-11-04 02:07:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			237 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			237 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// Check that `async fn` inside of an impl with `'_`
 | 
						|
// in the header compiles correctly.
 | 
						|
//
 | 
						|
// Regression test for #63500.
 | 
						|
//
 | 
						|
// check-pass
 | 
						|
// edition:2018
 | 
						|
 | 
						|
struct Foo<'a>(&'a u8);
 | 
						|
 | 
						|
impl Foo<'_> {
 | 
						|
    async fn bar() {}
 | 
						|
}
 | 
						|
 | 
						|
fn main() { }
 |